diff ui/main.cpp @ 672:376978e9cc61

Add debug output about style
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 27 Jun 2014 11:35:22 +0200
parents 80d1a80b3e8d
children 1e61903f61e2
line wrap: on
line diff
--- a/ui/main.cpp	Fri Jun 27 11:01:14 2014 +0200
+++ b/ui/main.cpp	Fri Jun 27 11:35:22 2014 +0200
@@ -18,6 +18,8 @@
 #include <QDebug>
 #include <QTranslator>
 
+#include <QStyleFactory>
+
 #ifndef VERSION
 #define VERSION "0.0.1"
 #endif
@@ -54,6 +56,9 @@
     QApplication::setApplicationVersion(QString::fromLatin1(VERSION));
     QSettings::setDefaultFormat(QSettings::IniFormat);
 
+    qDebug() << "Application style is: " << app.style()->metaObject()->className();
+    qDebug() << "Available styles: " << QStyleFactory::keys().join(", ");
+
     QStringList arguments = QApplication::arguments();
     bool trayMode = arguments.contains("--tray");
 

http://wald.intevation.org/projects/trustbridge/