aboutsummaryrefslogtreecommitdiffstats
path: root/verifynotification.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-08 18:14:23 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-08 18:14:23 +0000
commitcdcfb07b963cc844f78db0015c0d51298dd8bc90 (patch)
treebb592666d2af5b2f79c4e6054bb94d5e37773655 /verifynotification.cpp
parentcss for verifynotification (diff)
downloadgpg4usb-cdcfb07b963cc844f78db0015c0d51298dd8bc90.tar.gz
gpg4usb-cdcfb07b963cc844f78db0015c0d51298dd8bc90.zip
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
Diffstat (limited to 'verifynotification.cpp')
-rw-r--r--verifynotification.cpp12
1 files changed, 4 insertions, 8 deletions
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);
}