QTfrontend/main.cpp
branchqt5transition
changeset 12902 fc47fc4af6bd
parent 12666 1dc160048a0c
child 13183 b4f48e7a4953
--- a/QTfrontend/main.cpp	Wed Jan 24 21:05:34 2018 +0100
+++ b/QTfrontend/main.cpp	Wed Jan 24 22:20:10 2018 +0100
@@ -20,7 +20,6 @@
 
 #include <QTranslator>
 #include <QLocale>
-#include <QPlastiqueStyle>
 #include <QRegExp>
 #include <QMap>
 #include <QSettings>
@@ -252,7 +251,7 @@
     splash.show();
 #endif
 
-    app.setStyle(new QPlastiqueStyle());
+    //app.setStyle(new QPlastiqueStyle());
 
     QDateTime now = QDateTime::currentDateTime();
     srand(now.toTime_t());
@@ -332,7 +331,7 @@
 
             // Fallback to current input locale if "C" locale is returned
             if(cc == "C")
-                cc = HWApplication::keyboardInputLocale().name();
+                cc = HWApplication::inputMethod()->locale().name();
         }
 
         // Load locale files into translators