- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
45 lines
832 B
C++
45 lines
832 B
C++
|
|
|
|
#pragma once
|
|
#include <AssetManagement/asm.hpp>
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <QObject>
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace LtsLogin
|