diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-15 10:50:28 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-15 10:50:28 +0000 |
commit | 57794cabbb84e1965d5dfb8f39b7ceedcaa75571 (patch) | |
tree | 04bf84f9b39fa189cef9da2b603cd6a1f9daced0 /main.cpp | |
parent | make sign undoable,change return value checkErr to int (diff) | |
download | gpg4usb-57794cabbb84e1965d5dfb8f39b7ceedcaa75571.tar.gz gpg4usb-57794cabbb84e1965d5dfb8f39b7ceedcaa75571.zip |
add possibility to use stylesheet
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@496 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -63,6 +63,13 @@ int main(int argc, char *argv[]) #endif app.installTranslator(&translator2); + // css + QFile file(qApp->applicationDirPath() + "/css/default.css"); + file.open(QFile::ReadOnly); + QString styleSheet = QLatin1String(file.readAll()); + qApp->setStyleSheet(styleSheet); + //qDebug() << "css: " << styleSheet; + GpgWin *window = new GpgWin(); window->show(); |