From 2f1b0b6af6c7c21134030d990a36f458d8a9600e Mon Sep 17 00:00:00 2001 From: Saturneric Date: Thu, 27 May 2021 02:56:05 +0800 Subject: Fix the wrong use of the signing key interface. Fix the problem that the window or control is not deleted after it is closed. Modify the names of some classes. Extend the function of KeyList, add exclusion list. Improve the message mechanism of GpgContext. Fix the problem caused by incorrect API calls caused by incorrect understanding of the gpgme document. Signed-off-by: Saturneric --- include/ui/keypair_details/KeyUIDSignDialog.h | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/ui/keypair_details/KeyUIDSignDialog.h (limited to 'include/ui/keypair_details/KeyUIDSignDialog.h') diff --git a/include/ui/keypair_details/KeyUIDSignDialog.h b/include/ui/keypair_details/KeyUIDSignDialog.h new file mode 100644 index 00000000..56ec8541 --- /dev/null +++ b/include/ui/keypair_details/KeyUIDSignDialog.h @@ -0,0 +1,44 @@ +// +// Created by eric on 2021/5/24. +// + +#ifndef GPGFRONTEND_KEYUIDSIGNDIALOG_H +#define GPGFRONTEND_KEYUIDSIGNDIALOG_H + +#include "GpgFrontend.h" + +#include "gpg/GpgContext.h" +#include "ui/widgets/KeyList.h" + +class KeyUIDSignDialog : public QDialog { + Q_OBJECT + +public: + + explicit KeyUIDSignDialog(GpgME::GpgContext *ctx, const GpgKey &key, const QVector &uid, QWidget *parent = nullptr); + +private: + + GpgME::GpgContext *mCtx; + + KeyList *mKeyList; + + QPushButton *signKeyButton; + + QDateTimeEdit *expiresEdit; + + QCheckBox *nonExpireCheck; + + const QVector mUids; + + const GpgKey &mKey; + + +private slots: + + void slotSignKey(bool clicked); + +}; + + +#endif //GPGFRONTEND_KEYUIDSIGNDIALOG_H -- cgit v1.2.3