forked from qt-creator/qt-creator
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:
@@ -35,6 +35,7 @@
|
|||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
#include <extensionsystem/pluginspec.h>
|
#include <extensionsystem/pluginspec.h>
|
||||||
#include <qtsingleapplication.h>
|
#include <qtsingleapplication.h>
|
||||||
|
#include <utils/hostosinfo.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@@ -312,11 +313,11 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
#if QT_VERSION >= 0x050100
|
#if QT_VERSION >= 0x050100
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
# if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
if (Utils::HostOsInfo::isWindowsHost() || Utils::HostOsInfo::isMacHost()) {
|
||||||
// Prevent native windows from being created for the sibling widgets of the welcome screen.
|
// Prevent native windows from being created for the sibling widgets of the welcome screen.
|
||||||
// Causes flicker on Linux, though.
|
// Causes flicker on Linux, though.
|
||||||
app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
|
app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
|
||||||
# endif
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Manually determine -settingspath command line option
|
// Manually determine -settingspath command line option
|
||||||
|
|||||||
@@ -42,12 +42,6 @@ enum IosQemuStatus {
|
|||||||
IosQemuUserReason
|
IosQemuUserReason
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
#define IOS_BAT_SUFFIX ".bat"
|
|
||||||
#else
|
|
||||||
#define IOS_BAT_SUFFIX ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
namespace Constants {
|
namespace Constants {
|
||||||
|
|||||||
Reference in New Issue
Block a user