diff options
author | Saturneric <[email protected]> | 2021-08-25 10:00:48 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-25 10:00:48 +0000 |
commit | 5b55ebfe6758e3aa7a3b66dbaa5231002291eb44 (patch) | |
tree | 28fe92ffec2d5608b5e6af665ec3b8f06922364a /include/ui/ShowCopyDialog.h | |
parent | Merge branch 'develop' (diff) | |
parent | Update Documents. (diff) | |
download | GpgFrontend-5b55ebfe6758e3aa7a3b66dbaa5231002291eb44.tar.gz GpgFrontend-5b55ebfe6758e3aa7a3b66dbaa5231002291eb44.zip |
Merge branch 'develop'
Diffstat (limited to '')
-rw-r--r-- | include/ui/ShowCopyDialog.h (renamed from src/ui/keygen/SubkeyGenerateThread.cpp) | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/src/ui/keygen/SubkeyGenerateThread.cpp b/include/ui/ShowCopyDialog.h index 125f35f8..45b06e2d 100644 --- a/src/ui/keygen/SubkeyGenerateThread.cpp +++ b/include/ui/ShowCopyDialog.h @@ -18,19 +18,29 @@ * Their source code version also complies with GNU General Public License. * * The source code version of this software was modified and released - * by Saturneric<[email protected]><[email protected]> starting on May 12, 2021. + * by Saturneric<[email protected]> starting on May 12, 2021. * */ -#include "ui/keygen/SubkeyGenerateThread.h" +#ifndef GPGFRONTEND_ZH_CN_TS_SHOWCOPYDIALOG_H +#define GPGFRONTEND_ZH_CN_TS_SHOWCOPYDIALOG_H -SubkeyGenerateThread::SubkeyGenerateThread(GpgKey key, GenKeyInfo *keyGenParams, GpgME::GpgContext *ctx) - : mKey(std::move(key)), keyGenParams(keyGenParams) , mCtx(ctx) { - connect(this, &SubkeyGenerateThread::finished, this, &SubkeyGenerateThread::deleteLater); -} +#include "GpgFrontend.h" -void SubkeyGenerateThread::run() { - bool success = mCtx->generateSubkey(mKey, keyGenParams); - emit signalKeyGenerated(success); - emit finished({}); -} +class ShowCopyDialog : public QDialog { +Q_OBJECT +public: + explicit ShowCopyDialog(const QString &text, const QString &info = "", QWidget *parent = nullptr); + +private slots: + + void slotCopyText(); + +private: + QLabel *infoLabel; + QTextEdit *textEdit; + QPushButton *copyButton; +}; + + +#endif //GPGFRONTEND_ZH_CN_TS_SHOWCOPYDIALOG_H |