# HG changeset patch
# User nemo
# Date 1520950841 14400
# Node ID ddfb4a73524be5e998636f6ad6b32f1fb26450a3
# Parent  b4f48e7a49530af16cc419ac82c8bd9c783bec6f
try plastique with fallback to windows - we should find a way to alert the user that qt5-style-plugins would improve rendering

diff -r b4f48e7a4953 -r ddfb4a73524b QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Tue Mar 13 10:02:01 2018 -0400
+++ b/QTfrontend/main.cpp	Tue Mar 13 10:20:41 2018 -0400
@@ -155,8 +155,11 @@
 }
 
 int main(int argc, char *argv[]) {
-	/* Qt5 removed motif, plastique.  These are now in qt5-style-plugins which was NOT backported by debian/ubuntu to stable/LTS - windows appears to render best of the remaining options */
+	/* Qt5 removed motif, plastique.  These are now in qt5-style-plugins which was NOT backported by debian/ubuntu to stable/LTS - windows appears to render best of the remaining options but still isn't quite right. */
+	// set windows initially
 	QApplication::setStyle(QStyleFactory::create("windows"));
+	// try setting plastique if available from qt5-style-plugins - in testing qt5 skips the call on fail to locate which leaves us on windows
+	QApplication::setStyle(QStyleFactory::create("plastique"));
     // Since we're calling this first, closeResources() will be the last thing called after main() returns.
     atexit(closeResources);
 
@@ -167,7 +170,6 @@
     SDLInteraction::instance();
 
     HWApplication app(argc, argv);
-	//qDebug() << app.style();
     app.setAttribute(Qt::AA_DontShowIconsInMenus,false);
 
     // file engine, to be initialized later