aboutsummaryrefslogtreecommitdiffstats
path: root/editorpage.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-22 22:57:35 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-22 22:57:35 +0000
commita354065dd390bed674538b68bbbb23c7ce80eb51 (patch)
tree2c7dcc8b47179cd4147486965f0dcd39f4073a0c /editorpage.cpp
parentverify returns gpgme_op_verify_result (diff)
downloadgpg4usb-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 'editorpage.cpp')
-rw-r--r--editorpage.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/editorpage.cpp b/editorpage.cpp
index 0839584..7680c36 100644
--- a/editorpage.cpp
+++ b/editorpage.cpp
@@ -28,13 +28,13 @@ EditorPage::EditorPage(const QString &filePath, QWidget *parent) : QWidget(paren
fullFilePath(filePath)
{
textPage = new QPlainTextEdit();
- verifyLabel = new QLabel("Verified");
- verifyLabel->setObjectName("verifyLabel");
- this->showVerifyLabel(false);
+
+ //notificationWidget = new QWidget(this);
+ //this->showVerifyLabel(false);
mainLayout = new QVBoxLayout();
mainLayout->setSpacing(0);
mainLayout->addWidget(textPage);
- mainLayout->addWidget(verifyLabel);
+ //mainLayout->addWidget(notificationWidget);
mainLayout->setContentsMargins(0,0,0,0);
setLayout(mainLayout);
setAttribute(Qt::WA_DeleteOnClose);
@@ -59,13 +59,21 @@ void EditorPage::setFilePath(const QString &filePath)
fullFilePath = filePath;
}
+void EditorPage::showNotificationWidget(QWidget *widget)
+{
+ //notificationWidget = widget;
+ //notificationWidget->show();
+ mainLayout->addWidget(widget);
+}
+
void EditorPage::showVerifyLabel(bool showLabel)
{
if (showLabel == true) {
- verifyLabel->show();
+ notificationWidget->show();
} else {
- verifyLabel->hide();
+ notificationWidget->hide();
}
+
}
void setSaveState()