diff options
author | Saturneric <[email protected]> | 2021-10-02 14:08:50 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-10-02 14:16:27 +0000 |
commit | 3c65d087eeee687ac01af2e80f3dd538f9a2c230 (patch) | |
tree | 1e860dc6343c1897e2224a002f2ca44c574381b3 /src/ui/QuitDialog.h | |
parent | The basic functions of the core pass the test. (diff) | |
download | GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.tar.gz GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.zip |
UI Framework Modified.
Diffstat (limited to '')
-rwxr-xr-x | src/ui/QuitDialog.h (renamed from include/ui/QuitDialog.h) | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/include/ui/QuitDialog.h b/src/ui/QuitDialog.h index 19af7534..86616667 100755 --- a/include/ui/QuitDialog.h +++ b/src/ui/QuitDialog.h @@ -25,25 +25,29 @@ #ifndef __QUITDIALOG_H__ #define __QUITDIALOG_H__ -#include <GpgFrontend.h> +#include "ui/GpgFrontendUI.h" + +namespace GpgFrontend::UI { class QuitDialog : public QDialog { -Q_OBJECT + Q_OBJECT -public: - QuitDialog(QWidget *parent, const QHash<int, QString>& unsavedDocs); + public: + QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs); - [[nodiscard]] bool isDiscarded() const; + [[nodiscard]] bool isDiscarded() const; - QList<int> getTabIdsToSave(); + QList<int> getTabIdsToSave(); -private slots: + private slots: - void slotMyDiscard(); + void slotMyDiscard(); -private: - bool discarded; - QTableWidget *mFileList; + private: + bool discarded; + QTableWidget* mFileList; }; -#endif // __QUITDIALOG_H__ +} // namespace GpgFrontend::UI + +#endif // __QUITDIALOG_H__ |