From 57794cabbb84e1965d5dfb8f39b7ceedcaa75571 Mon Sep 17 00:00:00 2001 From: ubbo Date: Fri, 15 Jul 2011 10:50:28 +0000 Subject: add possibility to use stylesheet git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@496 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.cpp') 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(); -- cgit v1.2.3