diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-11 00:59:10 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-11 00:59:10 +0000 |
commit | a4f8dff6faaec18ffc43ce47f254e219a336a034 (patch) | |
tree | b5835929fd142b4b800ea9d43ceccf17d880826e /editorpage.cpp | |
parent | removed margins in attachment-table (diff) | |
download | gpg4usb-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.cpp | 19 |
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() { |