aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-28 17:15:11 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-28 17:15:11 +0000
commit201f03b88238e69c708e47fd7b7ab9a02cf76040 (patch)
treeee0dfdf4635a7d5169aa306c8d86d34b4f97ac56 /verifynotification.cpp
parentcleaned up class dependencies (diff)
downloadgpg4usb-201f03b88238e69c708e47fd7b7ab9a02cf76040.tar.gz
gpg4usb-201f03b88238e69c708e47fd7b7ab9a02cf76040.zip
minor beautyfiyng and repaired cimpile warnings
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@538 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifynotification.cpp')
-rw-r--r--verifynotification.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/verifynotification.cpp b/verifynotification.cpp
index 6564a81..36cb9e8 100644
--- a/verifynotification.cpp
+++ b/verifynotification.cpp
@@ -48,18 +48,6 @@ VerifyNotification::VerifyNotification(QWidget *parent, GpgME::Context *ctx, Key
notificationWidgetLayout->addWidget(verifyLabel,2);
notificationWidgetLayout->addWidget(detailsButton);
this->setLayout(notificationWidgetLayout);
- verifyDetailListLayout = new QVBoxLayout();
-}
-
-void VerifyNotification::addVerifyDetailLabel(QString text,verify_label_status status,bool prepend)
-{
- if (prepend) {
- verifyDetailStringVector.prepend(text);
- verifyDetailStatusVector.prepend(status);
- } else {
- verifyDetailStringVector.append(text);
- verifyDetailStatusVector.append(status);
- }
}
void VerifyNotification::importFromKeyserver()
@@ -94,35 +82,5 @@ void VerifyNotification::showImportAction(bool visible)
void VerifyNotification::showVerifyDetails()
{
- /*QDialog *verifyDetailsDialog = new QDialog(this);
- // QLabel *label = new QLabel(*verifyDetailText);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
- connect(buttonBox, SIGNAL(rejected()), verifyDetailsDialog, SLOT(close()));
- for (int i=0;i<verifyDetailStringVector.size();i++) {
- QLabel *label = new QLabel(verifyDetailStringVector[i]);
- verifyDetailListLayout->addWidget(label);
- switch (verifyDetailStatusVector[i]) {
- case VERIFY_ERROR_OK: label->setObjectName("ok");
- break;
- case VERIFY_ERROR_WARN: label->setObjectName("warning");
- break;
- case VERIFY_ERROR_CRITICAL: label->setObjectName("critical");
- break;
- default:
- break;
- }
- }
-
-// verifyDetailStatusVector.append(status);
-
-// verifyDetailListLayout->addWidget(label);
-
- verifyDetailListLayout->addWidget(buttonBox);
-
- verifyDetailsDialog->setLayout(verifyDetailListLayout);
- verifyDetailsDialog->show();
-
- //QMessageBox::information(this,tr("Details"),QString(*verifyDetailText), QMessageBox::Ok);
- return;*/
new VerifyDetailsDialog(this, mCtx, mKeyList, mSignature);
}