aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-21 22:27:56 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-21 22:27:56 +0000
commit4fbaa10c0928d6215dd29fbad836b89f70d539a1 (patch)
tree9b88c512e119d1de1cecc7a14bd4f0adfb690bd6 /verifynotification.cpp
parentchanged verifylabellist back to one verifylabel and updated TODO (diff)
downloadgpg4usb-4fbaa10c0928d6215dd29fbad836b89f70d539a1.tar.gz
gpg4usb-4fbaa10c0928d6215dd29fbad836b89f70d539a1.zip
added copy mailaddress to clipboard in keylist
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@517 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifynotification.cpp')
-rw-r--r--verifynotification.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/verifynotification.cpp b/verifynotification.cpp
index 67efe89..2b650fb 100644
--- a/verifynotification.cpp
+++ b/verifynotification.cpp
@@ -29,7 +29,6 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) :
notificationWidgetLayout->addWidget(detailsButton);
this->setLayout(notificationWidgetLayout);
-
}
void VerifyNotification::setVerifyDetailText (QString text)
@@ -47,10 +46,19 @@ void VerifyNotification::importFromKeyserver()
}
}
-void VerifyNotification::setVerifyLabel(QString text, QString status)
+void VerifyNotification::setVerifyLabel(QString text, verify_label_status verifyLabelStatus)
{
verifyLabel->setText(text);
- verifyLabel->setObjectName(status);
+ switch (verifyLabelStatus) {
+ case VERIFY_ERROR_OK: verifyLabel->setObjectName("ok");
+ break;
+ case VERIFY_ERROR_WARN: verifyLabel->setObjectName("warning");
+ break;
+ case VERIFY_ERROR_CRITICAL: verifyLabel->setObjectName("critical");
+ break;
+ default:
+ break;
+ }
return;
}