Qt6 Migration: LtsWidgets, BUILD_RTI Guards, externe Dependencies dokumentiert
- LtsWidgets Verzeichnis vollständig migriert (Qt5→Qt6) - BUILD_RTI Guards für RTI-spezifische Module hinzugefügt - Externe Dependencies in EXTERNAL_DEPS.md dokumentiert - Qt6 API-Änderungen: QRegExp→QRegularExpression, enterEvent(QEnterEvent*) - AutoUic-Fehler bei ui_requirement behoben (SKIP_AUTOUIC) - Include-Pfade korrigiert (LtsElevation, LtsMultiMonitor, LtsUtilsCore) - MOC-Fehler behoben (Q_INTERFACES entfernt wo nicht benötigt) - CMakeLists.txt Anpassungen für Qt6 (PUBLIC statt INTERFACE) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
145 files changed
+17700
-14377
No files matched your search
@@ -7,39 +7,49 @@
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
|
||||
class QPushButton;
|
||||
class QHBoxLayout;
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief The LtsMessageDialogHelper class cannot be exported and only is a helper class which is actually instantiated, shows the LtsMessageDialog.
|
||||
* To provide the blocking call to showMessage (call with return type), an event loop is created and exited when the user has selected a button to close the dialog.
|
||||
* If the behaviour is non-modal, closing the Dialog by clicking outside of it will return Button::Cancel.
|
||||
*/
|
||||
class LtsMessageDialogHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit LtsMessageDialogHelper(QObject* parent = nullptr);
|
||||
~LtsMessageDialogHelper() = default;
|
||||
public:
|
||||
explicit LtsMessageDialogHelper(QObject *parent = nullptr);
|
||||
~LtsMessageDialogHelper() = default;
|
||||
|
||||
Button showMessage(QWidget* parent, const QString& message, const QString& title, Behaviour behaviour,
|
||||
LtsWidgets::Buttons buttons, const QHash<Button, QString>& buttonTexts);
|
||||
Button showMessage(QWidget *parent,
|
||||
const QString &message,
|
||||
const QString &title,
|
||||
Behaviour behaviour,
|
||||
LtsWidgets::Buttons buttons,
|
||||
const QHash<Button, QString> &buttonTexts);
|
||||
|
||||
private:
|
||||
QPushButton* addButton(const QString& text, QHBoxLayout* thatLayout, LtsFramelessDialog* dialog,
|
||||
const Button& button, QWidget* parent);
|
||||
private:
|
||||
QPushButton *addButton(const QString &text, QHBoxLayout *thatLayout, LtsFramelessDialog *dialog, const Button &button, QWidget *parent);
|
||||
|
||||
Button m_result;
|
||||
LtsFramelessDialog* m_dialog;
|
||||
Button m_result;
|
||||
LtsFramelessDialog *m_dialog;
|
||||
|
||||
private slots:
|
||||
void slotOkay();
|
||||
void slotYes();
|
||||
void slotNo();
|
||||
void slotCancel();
|
||||
void slotApply();
|
||||
void slotDiscard();
|
||||
private slots:
|
||||
void slotOkay();
|
||||
void slotYes();
|
||||
void slotNo();
|
||||
void slotCancel();
|
||||
void slotApply();
|
||||
void slotDiscard();
|
||||
|
||||
signals:
|
||||
void signalQuitEventLoop();
|
||||
signals:
|
||||
void signalQuitEventLoop();
|
||||
};
|
||||
} // namespace LtsWidgets
|
||||
Reference in new issue
Block a user