diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-22 22:57:35 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-22 22:57:35 +0000 |
commit | a354065dd390bed674538b68bbbb23c7ce80eb51 (patch) | |
tree | 2c7dcc8b47179cd4147486965f0dcd39f4073a0c /verifynotification.cpp | |
parent | verify returns gpgme_op_verify_result (diff) | |
download | gpg4usb-a354065dd390bed674538b68bbbb23c7ce80eb51.tar.gz gpg4usb-a354065dd390bed674538b68bbbb23c7ce80eb51.zip |
independent notifcation area
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@503 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifynotification.cpp')
-rw-r--r-- | verifynotification.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/verifynotification.cpp b/verifynotification.cpp new file mode 100644 index 0000000..0c42fdf --- /dev/null +++ b/verifynotification.cpp @@ -0,0 +1,30 @@ +#include "verifynotification.h" + +VerifyNotification::VerifyNotification(QWidget *parent) : + QWidget(parent) +{ + QLabel *verifyLabel = new QLabel("Verified"); + + QHBoxLayout *notificationWidgetLayout = new QHBoxLayout(); + notificationWidgetLayout->setContentsMargins(0,0,0,0); + notificationWidgetLayout->addWidget(verifyLabel); + +// notificationWidget = new QWidget(this); + + this->setStyleSheet("background-color: #CBFDCB;"); + this->setLayout(notificationWidgetLayout); + + QAction *openAct = new QAction(tr("&Open..."), this); + openAct->setShortcut(QKeySequence::Open); + openAct->setToolTip(tr("Open an existing file")); + + QMenu *verifyMenu = new QMenu(); + verifyMenu->addAction(openAct); + + QPushButton *verifyButton = new QPushButton("Details"); + verifyButton->setMenu(verifyMenu); + notificationWidgetLayout->addStretch(1); + notificationWidgetLayout->addWidget(verifyButton); + + +} |