- #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)
45 lines
782 B
C++
Executable File
45 lines
782 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <AssetManagement/asm.hpp>
|
|
|
|
class QTimer;
|
|
|
|
namespace Ui { class LogoutInformationDialog; }
|
|
|
|
namespace LtsLogin
|
|
{
|
|
|
|
class LogoutInformationDialog : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
LogoutInformationDialog(int timeOut, AssetManagement::ShutdownAction shutdownAction, QWidget *parent = nullptr);
|
|
~LogoutInformationDialog();
|
|
|
|
private slots:
|
|
void onTimerTimeout();
|
|
void acceptClicked();
|
|
void closeClicked();
|
|
|
|
private:
|
|
void setText(const QString &text);
|
|
void setCloseButtonText(int secsLeft);
|
|
|
|
Ui::LogoutInformationDialog *m_ui;
|
|
QTimer *m_timer;
|
|
int m_timeOut;
|
|
int m_secsLeft;
|
|
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override final;
|
|
};
|
|
|
|
}
|