changeset 672:376978e9cc61

Add debug output about style
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 27 Jun 2014 11:35:22 +0200
parents d4766b4922c9
children e8bc1215904e
files ui/main.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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/