From a354065dd390bed674538b68bbbb23c7ce80eb51 Mon Sep 17 00:00:00 2001 From: nils Date: Fri, 22 Jul 2011 22:57:35 +0000 Subject: independent notifcation area git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@503 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- editorpage.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'editorpage.cpp') 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() -- cgit