try plastique with fallback to windows - we should find a way to alert the user that qt5-style-plugins would improve rendering qt5transition
authornemo
Tue, 13 Mar 2018 10:20:41 -0400
branchqt5transition
changeset 13184 ddfb4a73524b
parent 13183 b4f48e7a4953
child 13185 3961f9d0c7e4
try plastique with fallback to windows - we should find a way to alert the user that qt5-style-plugins would improve rendering
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