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/help/AboutDialog.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 '')
-rw-r--r-- | src/ui/help/AboutDialog.h (renamed from include/ui/help/AboutDialog.h) | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/include/ui/help/AboutDialog.h b/src/ui/help/AboutDialog.h index dee2c018..3b7d42c8 100644 --- a/include/ui/help/AboutDialog.h +++ b/src/ui/help/AboutDialog.h @@ -25,19 +25,19 @@ #ifndef __ABOUTDIALOG_H__ #define __ABOUTDIALOG_H__ -#include <GpgFrontend.h> - #include "gpg/GpgContext.h" +#include "ui/GpgFrontendUI.h" +namespace GpgFrontend::UI { /** * @brief Class containing the main tab of about dialog * */ class InfoTab : public QWidget { -Q_OBJECT + Q_OBJECT -public: - explicit InfoTab(QWidget *parent = nullptr); + public: + explicit InfoTab(QWidget* parent = nullptr); }; /** @@ -45,10 +45,10 @@ public: * */ class TranslatorsTab : public QWidget { -Q_OBJECT + Q_OBJECT -public: - explicit TranslatorsTab(QWidget *parent = nullptr); + public: + explicit TranslatorsTab(QWidget* parent = nullptr); }; /** @@ -56,28 +56,29 @@ public: * */ class UpdateTab : public QWidget { -Q_OBJECT + Q_OBJECT - QLabel *currentVersionLabel; + QLabel* currentVersionLabel; - QLabel *latestVersionLabel; + QLabel* latestVersionLabel; - QLabel *upgradeLabel; + QLabel* upgradeLabel; - QProgressBar *pb; + QProgressBar* pb; - QString currentVersion; + QString currentVersion; -public: - explicit UpdateTab(QWidget *parent = nullptr); + public: + explicit UpdateTab(QWidget* parent = nullptr); - void getLatestVersion(); + void getLatestVersion(); -private slots: - void processReplyDataFromUpdateServer(const QByteArray& data);; + private slots: + void processReplyDataFromUpdateServer(const QByteArray& data); + ; -signals: - void replyFromUpdateServer(QByteArray data); + signals: + void replyFromUpdateServer(QByteArray data); }; /** @@ -85,18 +86,18 @@ signals: * */ class AboutDialog : public QDialog { -Q_OBJECT - -public: - explicit AboutDialog(int defaultIndex, QWidget *parent); + Q_OBJECT + public: + explicit AboutDialog(int defaultIndex, QWidget* parent); -protected: - void showEvent(QShowEvent *ev) override; + protected: + void showEvent(QShowEvent* ev) override; -private: - UpdateTab *updateTab; + private: + UpdateTab* updateTab; }; -#endif // __ABOUTDIALOG_H__ +} // namespace GpgFrontend::UI +#endif // __ABOUTDIALOG_H__ |