aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/help/AboutDialog.h
diff options
context:
space:
mode:
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__