aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'verifynotification.cpp')
-rw-r--r--verifynotification.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/verifynotification.cpp b/verifynotification.cpp
index b96615a..f7d46fe 100644
--- a/verifynotification.cpp
+++ b/verifynotification.cpp
@@ -27,9 +27,19 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) :
QPushButton *verifyButton = new QPushButton("Details",this);
verifyButton->setMenu(detailMenu);
notificationWidgetLayout->addWidget(verifyButton);
+
+ verifyDetailText = new QString();
+}
+
+void VerifyNotification::setVerifyDetailText (QString text)
+{
+ verifyDetailText->clear();
+ verifyDetailText->append(text);
+ return;
}
-void VerifyNotification::importFromKeyserver(){
+void VerifyNotification::importFromKeyserver()
+{
KeyServerImportDialog *importDialog =new KeyServerImportDialog(mCtx,this);
foreach (QString keyid, *keysNotInList) {
importDialog->import(keyid);
@@ -55,6 +65,6 @@ void VerifyNotification::removeImportAction()
void VerifyNotification::showVerifyDetails()
{
- QMessageBox::information(this,tr("Details"),tr("key verified"),QMessageBox::Cancel | QMessageBox::Ok);
+ QMessageBox::information(this,tr("Details"),QString(*verifyDetailText), QMessageBox::Ok);
return;
}