Explorar o código

Os #ifdef guard for AStyle::defaultStyle

George %!s(int64=4) %!d(string=hai) anos
pai
achega
557969c273
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/classes/astyle.cpp

+ 6 - 1
src/classes/astyle.cpp

@@ -5,8 +5,13 @@
 #include "src/testing/adebug.h"
 #include "src/classes/asettings.h"
 
+#ifdef __linux__
+const QString AStyle::defaultStyle = QStringLiteral("fusion");
+#elif defined(_WIN32) || defined(_WIN64)
+const QString AStyle::defaultStyle = QStringLiteral("Windows");
+#endif
+
 const QStringList AStyle::styles = QStyleFactory::keys();
-const QString AStyle::defaultStyle = QStringLiteral("kvantum-dark");
 QString AStyle::currentStyle;
 
 // [G]: Are there leaks when style changes?