summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:17:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:25:26 +0200
commitdb6cd6775798c1cb48f39ba2e07d6cfb0771f62c (patch)
tree4ea095a1ae3780f7fed3e38147fbbafeadbaa725 /gui
parent31cb16207abd9ac03516dc69ffcc9125769b1e08 (diff)
gui: fix global qt style for xp
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 3481c534..d929c543 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -5,6 +5,7 @@
# include <QCoreApplication>
# include <QFile>
# include <QString>
+# include <QSysInfo>
# include <QtGlobal>
#else
# include <unistd.h>
@@ -27,6 +28,11 @@ using namespace options;
void set_qt_style()
{
+#if defined _WIN32
+ if (QSysInfo::WindowsVersion == QSysInfo::WV_XP)
+ return;
+#endif
+
#if defined(_WIN32) || defined(__APPLE__)
// our layouts on OSX make some control wrongly sized -sh 20160908
{