aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-15 10:50:28 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-15 10:50:28 +0000
commit57794cabbb84e1965d5dfb8f39b7ceedcaa75571 (patch)
tree04bf84f9b39fa189cef9da2b603cd6a1f9daced0 /main.cpp
parentmake sign undoable,change return value checkErr to int (diff)
downloadgpg4usb-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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 10b79e3..2330e7c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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();