From cdcfb07b963cc844f78db0015c0d51298dd8bc90 Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 8 Aug 2011 18:14:23 +0000 Subject: changed removeNoteByClassname to hideNoteByClassname since remove doesn't work git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@509 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifynotification.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'verifynotification.cpp') diff --git a/verifynotification.cpp b/verifynotification.cpp index e6b3819..b9db071 100644 --- a/verifynotification.cpp +++ b/verifynotification.cpp @@ -5,26 +5,22 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) : QWidget(parent) { mCtx = ctx; - verifyLabel = new QLabel("Verified"); + verifyLabel = new QLabel(this); - QHBoxLayout *notificationWidgetLayout = new QHBoxLayout(); + notificationWidgetLayout = new QHBoxLayout(this); notificationWidgetLayout->setContentsMargins(0,0,0,0); notificationWidgetLayout->addWidget(verifyLabel,2); -// notificationWidget = new QWidget(this); - - //this->setStyleSheet("background-color: #CBFDCB;"); this->setLayout(notificationWidgetLayout); QAction *importFromKeyserverAct = new QAction(tr("Import missing key from Keyserver"), this); connect(importFromKeyserverAct, SIGNAL(triggered()), this, SLOT(importFromKeyserver())); - QMenu *detailMenu = new QMenu(); + QMenu *detailMenu = new QMenu(this); detailMenu->addAction(importFromKeyserverAct); keysNotInList = new QStringList(); - QPushButton *verifyButton = new QPushButton("Details"); + QPushButton *verifyButton = new QPushButton("Details",this); verifyButton->setMenu(detailMenu); - // notificationWidgetLayout->addStretch(1); notificationWidgetLayout->addWidget(verifyButton); } -- cgit v1.2.3