aboutsummaryrefslogtreecommitdiffstats
path: root/editorpage.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-11 00:59:10 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-11 00:59:10 +0000
commita4f8dff6faaec18ffc43ce47f254e219a336a034 (patch)
treeb5835929fd142b4b800ea9d43ceccf17d880826e /editorpage.cpp
parentremoved margins in attachment-table (diff)
downloadgpg4usb-a4f8dff6faaec18ffc43ce47f254e219a336a034.tar.gz
gpg4usb-a4f8dff6faaec18ffc43ce47f254e219a336a034.zip
added Qlabel at the buttom of textedit for verify
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@491 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'editorpage.cpp')
-rw-r--r--editorpage.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/editorpage.cpp b/editorpage.cpp
index 4bead12..efbdf2e 100644
--- a/editorpage.cpp
+++ b/editorpage.cpp
@@ -28,10 +28,16 @@ EditorPage::EditorPage(const QString &filePath, QWidget *parent) : QWidget(paren
fullFilePath(filePath)
{
textPage = new QPlainTextEdit();
-
- mainLayout = new QHBoxLayout();
+ verifyLabel = new QLabel("Verified");
+ verifyLabel->setAutoFillBackground(1);
+ QPalette verifyPalette = verifyLabel->palette();
+ verifyPalette.setColor(QPalette::Background, "#CBFDCB");
+ verifyLabel->setPalette(verifyPalette);
+ this->showVerifyLabel(false);
+ mainLayout = new QVBoxLayout();
mainLayout->setSpacing(0);
mainLayout->addWidget(textPage);
+ mainLayout->addWidget(verifyLabel);
mainLayout->setContentsMargins(0,0,0,0);
setLayout(mainLayout);
setAttribute(Qt::WA_DeleteOnClose);
@@ -56,7 +62,14 @@ void EditorPage::setFilePath(const QString &filePath)
fullFilePath = filePath;
}
-
+void EditorPage::showVerifyLabel(bool showLabel)
+{
+ if (showLabel == true) {
+ verifyLabel->show();
+ } else {
+ verifyLabel->hide();
+ }
+}
void setSaveState()
{