aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/ShowCopyDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-15 15:00:19 +0000
committerSaturneric <[email protected]>2021-08-15 15:00:19 +0000
commit805f8b2f36007317a750cf6aecb633ad6ad2d4e4 (patch)
tree830b8c558dcb162c49d8609685e5c152a15afcfc /src/ui/ShowCopyDialog.cpp
parentBeautify UI; Improve Functions; (diff)
downloadGpgFrontend-805f8b2f36007317a750cf6aecb633ad6ad2d4e4.tar.gz
GpgFrontend-805f8b2f36007317a750cf6aecb633ad6ad2d4e4.zip
Bugs Fixed; Improve Functions;
Diffstat (limited to 'src/ui/ShowCopyDialog.cpp')
-rw-r--r--src/ui/ShowCopyDialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/ShowCopyDialog.cpp b/src/ui/ShowCopyDialog.cpp
index 6785b0a3..a22bfc90 100644
--- a/src/ui/ShowCopyDialog.cpp
+++ b/src/ui/ShowCopyDialog.cpp
@@ -24,7 +24,7 @@
#include "ui/ShowCopyDialog.h"
-ShowCopyDialog::ShowCopyDialog(const QString &text, QWidget *parent) : QDialog(parent) {
+ShowCopyDialog::ShowCopyDialog(const QString &text, const QString &info, QWidget *parent) : QDialog(parent) {
textEdit = new QTextEdit();
textEdit->setReadOnly(true);
textEdit->setLineWrapMode(QTextEdit::WidgetWidth);
@@ -32,9 +32,14 @@ ShowCopyDialog::ShowCopyDialog(const QString &text, QWidget *parent) : QDialog(p
copyButton = new QPushButton("Copy");
connect(copyButton, SIGNAL(clicked(bool)), this, SLOT(slotCopyText()));
+ infoLabel = new QLabel();
+ infoLabel->setText(info);
+ infoLabel->setWordWrap(true);
+
auto *layout = new QVBoxLayout();
layout->addWidget(textEdit);
layout->addWidget(copyButton);
+ layout->addWidget(infoLabel);
this->setModal(true);
this->setLayout(layout);