瀏覽代碼

Os #ifdef guard for AStyle::defaultStyle

George 4 年之前
父節點
當前提交
557969c273
共有 1 個文件被更改,包括 6 次插入1 次删除
  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?