- #include <QObject> zu 106+ Header-Dateien hinzugefügt (Qt6 benötigt explizites Include) - ui_requirement.h/cpp zu requirement_widget.h/cpp umbenannt (vermeidet AutoUIC-Scan) - CMakeLists.txt aktualisiert - Qt6Positioning-Dependency in Dockerfile hinzugefügt Fixes: - AutoUIC-Fehler bei AesBaseGui (requirement.ui nicht gefunden) - QObject-Missing-Include-Fehler in Qt6 - Qt6Location-Modul nicht gefunden (qtpositioning fehlte)
48 lines
629 B
C++
Executable File
48 lines
629 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include <QDialog>
|
|
|
|
#include "lts_base.h"
|
|
#include "lts_widgets_export.h"
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
|
|
enum class Behaviour
|
|
{
|
|
Popup = 0,
|
|
Modal,
|
|
};
|
|
|
|
|
|
|
|
|
|
class LTSWIDGETS_EXPORT LtsFramelessDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
|
|
explicit LtsFramelessDialog(QWidget *parent = nullptr, const Behaviour &behaviour = Behaviour::Popup);
|
|
virtual ~LtsFramelessDialog();
|
|
|
|
public Q_SLOTS:
|
|
void onUpdateGeometry();
|
|
private:
|
|
QRect screenRectFromPoint(const QPoint &pos) const;
|
|
void addTouchScroll(QWidget *widget);
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
};
|
|
|
|
}
|