diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-15 13:34:36 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-15 13:34:36 +0000 |
commit | a22e8d4697b413b2348a648735afee259f541a56 (patch) | |
tree | 8adf9d8aaa5c92f550f1420d1c56a85925603a82 | |
parent | add possibility to use stylesheet (diff) | |
download | gpg4usb-a22e8d4697b413b2348a648735afee259f541a56.tar.gz gpg4usb-a22e8d4697b413b2348a648735afee259f541a56.zip |
use css for verifyLabel
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@497 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | editorpage.cpp | 5 | ||||
-rw-r--r-- | release/css/default.css | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editorpage.cpp b/editorpage.cpp index efbdf2e..0839584 100644 --- a/editorpage.cpp +++ b/editorpage.cpp @@ -29,10 +29,7 @@ EditorPage::EditorPage(const QString &filePath, QWidget *parent) : QWidget(paren { textPage = new QPlainTextEdit(); verifyLabel = new QLabel("Verified"); - verifyLabel->setAutoFillBackground(1); - QPalette verifyPalette = verifyLabel->palette(); - verifyPalette.setColor(QPalette::Background, "#CBFDCB"); - verifyLabel->setPalette(verifyPalette); + verifyLabel->setObjectName("verifyLabel"); this->showVerifyLabel(false); mainLayout = new QVBoxLayout(); mainLayout->setSpacing(0); diff --git a/release/css/default.css b/release/css/default.css index 8b81422..50e1344 100644 --- a/release/css/default.css +++ b/release/css/default.css @@ -1,3 +1,6 @@ +/* CSS for GUI, look e.g. at http://doc.qt.nokia.com/latest/stylesheet-examples.html */ + +QLabel#verifyLabel { background-color: #CBFDCB } /* QLabel, QAbstractButton { |