From e6c577c72f12273cb27f2be43a1ebd70e0a800a3 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 10 Aug 2011 01:38:55 +0000 Subject: further comments git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@513 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifynotification.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'verifynotification.cpp') diff --git a/verifynotification.cpp b/verifynotification.cpp index f1bffc4..1569542 100644 --- a/verifynotification.cpp +++ b/verifynotification.cpp @@ -6,12 +6,7 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) : { mCtx = ctx; verifyLabel = new QLabel(this); - - notificationWidgetLayout = new QHBoxLayout(this); - notificationWidgetLayout->setContentsMargins(0,0,0,0); - notificationWidgetLayout->addWidget(verifyLabel,2); - - this->setLayout(notificationWidgetLayout); + verifyDetailText = new QString(); importFromKeyserverAct = new QAction(tr("Import missing key from Keyserver"), this); connect(importFromKeyserverAct, SIGNAL(triggered()), this, SLOT(importFromKeyserver())); @@ -23,12 +18,18 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) : detailMenu->addAction(showVerifyDetailsAct); detailMenu->addAction(importFromKeyserverAct); importFromKeyserverAct->setVisible(false); + keysNotInList = new QStringList(); + detailsButton = new QPushButton("Details",this); detailsButton->setMenu(detailMenu); + notificationWidgetLayout = new QHBoxLayout(this); + notificationWidgetLayout->setContentsMargins(0,0,0,0); + notificationWidgetLayout->addWidget(verifyLabel,2); notificationWidgetLayout->addWidget(detailsButton); - verifyDetailText = new QString(); + this->setLayout(notificationWidgetLayout); + } void VerifyNotification::setVerifyDetailText (QString text) -- cgit v1.2.3