blob: 2de1a2a3300cd5de9798226545f97bd86384b3c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "verifynotification.h"
VerifyNotification::VerifyNotification(QWidget *parent) :
QWidget(parent)
{
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);
}
void VerifyNotification::setVerifyLabel(QString text)
{
verifyLabel->setText(text);
return;
}
|