diff --git a/src/app/main.cpp b/src/app/main.cpp index bb16db908f3..6393458d31b 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -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 diff --git a/src/plugins/ios/iosconstants.h b/src/plugins/ios/iosconstants.h index 915b91f119e..6eb17c67f73 100644 --- a/src/plugins/ios/iosconstants.h +++ b/src/plugins/ios/iosconstants.h @@ -42,12 +42,6 @@ enum IosQemuStatus { IosQemuUserReason }; -#ifdef Q_OS_WIN32 -#define IOS_BAT_SUFFIX ".bat" -#else -#define IOS_BAT_SUFFIX "" -#endif - } // namespace Internal namespace Constants {