summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-10-07 11:06:41 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-10-07 12:49:13 +0200
commit90a056e1cb8890c5c2f064e4e9d2bd992fc96083 (patch)
treedadc7fd52f2ee6a7553655bd800ae804fb7d5de6 /src/app
parent03e76337cae67bb718a4998c9e31badd295a9a61 (diff)
downloadqt-creator-90a056e1cb8890c5c2f064e4e9d2bd992fc96083.tar.gz
Remove unneeded #ifdefs.
Change-Id: I696133c42a142a8c596703fc8ce0250b58993d99 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index bb16db908f..6393458d31 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -35,6 +35,7 @@
#include <extensionsystem/pluginmanager.h>
#include <extensionsystem/pluginspec.h>
#include <qtsingleapplication.h>
+#include <utils/hostosinfo.h>
#include <QDebug>
#include <QDir>
@@ -312,11 +313,11 @@ int main(int argc, char **argv)
#if QT_VERSION >= 0x050100
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
-# if defined(Q_OS_WIN) || defined(Q_OS_MAC)
- // Prevent native windows from being created for the sibling widgets of the welcome screen.
- // Causes flicker on Linux, though.
- app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
-# endif
+ if (Utils::HostOsInfo::isWindowsHost() || Utils::HostOsInfo::isMacHost()) {
+ // Prevent native windows from being created for the sibling widgets of the welcome screen.
+ // Causes flicker on Linux, though.
+ app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
+ }
#endif
// Manually determine -settingspath command line option