aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyUIDSignDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-10-02 14:08:50 +0000
committerSaturneric <[email protected]>2021-10-02 14:16:27 +0000
commit3c65d087eeee687ac01af2e80f3dd538f9a2c230 (patch)
tree1e860dc6343c1897e2224a002f2ca44c574381b3 /src/ui/keypair_details/KeyUIDSignDialog.h
parentThe basic functions of the core pass the test. (diff)
downloadGpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.tar.gz
GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.zip
UI Framework Modified.
Diffstat (limited to '')
-rw-r--r--src/ui/keypair_details/KeyUIDSignDialog.h (renamed from include/ui/keypair_details/KeyUIDSignDialog.h)40
1 files changed, 19 insertions, 21 deletions
diff --git a/include/ui/keypair_details/KeyUIDSignDialog.h b/src/ui/keypair_details/KeyUIDSignDialog.h
index fcbb4fbd..cd35c4e6 100644
--- a/include/ui/keypair_details/KeyUIDSignDialog.h
+++ b/src/ui/keypair_details/KeyUIDSignDialog.h
@@ -25,40 +25,38 @@
#ifndef GPGFRONTEND_KEYUIDSIGNDIALOG_H
#define GPGFRONTEND_KEYUIDSIGNDIALOG_H
-#include "GpgFrontend.h"
-
#include "gpg/GpgContext.h"
+#include "ui/GpgFrontendUI.h"
#include "ui/widgets/KeyList.h"
-class KeyUIDSignDialog : public QDialog {
- Q_OBJECT
-
-public:
-
- explicit KeyUIDSignDialog(GpgFrontend::GpgContext *ctx, const GpgKey &key, const QVector<GpgUID> &uid, QWidget *parent = nullptr);
+namespace GpgFrontend::UI {
-private:
-
- GpgFrontend::GpgContext *mCtx;
-
- KeyList *mKeyList;
+class KeyUIDSignDialog : public QDialog {
+ Q_OBJECT
- QPushButton *signKeyButton;
+ public:
+ explicit KeyUIDSignDialog(const GpgKey& key,
+ const UIDArgsListPtr& uid,
+ QWidget* parent = nullptr);
- QDateTimeEdit *expiresEdit;
+ private:
+ KeyList* mKeyList;
- QCheckBox *nonExpireCheck;
+ QPushButton* signKeyButton;
- const QVector<GpgUID> mUids;
+ QDateTimeEdit* expiresEdit;
- const GpgKey &mKey;
+ QCheckBox* nonExpireCheck;
+ const UIDArgsListPtr& mUids;
-private slots:
+ const GpgKey& mKey;
- void slotSignKey(bool clicked);
+ private slots:
+ void slotSignKey(bool clicked);
};
+} // namespace GpgFrontend::UI
-#endif //GPGFRONTEND_KEYUIDSIGNDIALOG_H
+#endif // GPGFRONTEND_KEYUIDSIGNDIALOG_H