Remove unneeded #ifdefs.

Change-Id: I696133c42a142a8c596703fc8ce0250b58993d99
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Christian Kandeler
2013-10-07 11:06:41 +02:00
parent 03e76337ca
commit 90a056e1cb
2 changed files with 6 additions and 11 deletions

View File

@@ -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