From 28f2fcf4e38d30c4bdb3fcf141a7f42e9a16019f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 2 Aug 2018 17:12:06 +0200 Subject: Revert "[shared/server] define preferred styles and enable it if supported" Pointless code!? Makes theme look ugly with Qt5 at least with no apparent advantage whatsoever. This reverts commit 7cf83493fdaca88fd3dbc736d5ca9d86dd7f9e83. --- src/server/main.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/server') diff --git a/src/server/main.cpp b/src/server/main.cpp index 769fedb..f804c1a 100644 --- a/src/server/main.cpp +++ b/src/server/main.cpp @@ -1,7 +1,6 @@ #include #include #include "mainwindow/mainwindow.h" -#include "../shared/settings.h" #include "serverapp/serverapp.h" using std::cout; @@ -36,14 +35,5 @@ int main(int argc, char** argv) } } - QStringList supportedStyles = QStyleFactory::keys(); - for (QString style : PREFERRED_STYLES) { - if (supportedStyles.contains(style)) { - qDebug() << "Setting style to: " << style; - app.setStyle(style); - break; - } - } - return app.exec(); } -- cgit v1.2.3-55-g7522