From 201f03b88238e69c708e47fd7b7ab9a02cf76040 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 28 Sep 2011 17:15:11 +0000 Subject: minor beautyfiyng and repaired cimpile warnings git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@538 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifynotification.cpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'verifynotification.cpp') 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;iaddWidget(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); } -- cgit v1.2.3