windows: Reviewed and ported a bunch of Q_OS_WIN_OLD usages

Those are fine. Will tackle the difficult ones next.
This commit is contained in:
Sergio Martins
2022-05-30 22:04:35 +01:00
parent d8e703275f
commit 94afae2729
13 changed files with 30 additions and 26 deletions

View File

@@ -22,7 +22,7 @@
int main(int argc, char *argv[])
{
#ifdef Q_OS_WIN_TODO
#ifdef Q_OS_WIN
QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);
#endif
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
parser.addOption(nativeTitleBar);
parser.addOption(noDropIndicators);
#if defined(Q_OS_WIN_TODO)
#if defined(Q_OS_WIN)
QCommandLineOption noAeroSnap("no-aero-snap", QCoreApplication::translate("main", "(internal) Disable AeroSnap"));
parser.addOption(noAeroSnap);
#endif
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
else if (parser.isSet(noDropIndicators))
KDDockWidgets::ViewFactory::s_dropIndicatorType = KDDockWidgets::DropIndicatorType::None;
#if defined(Q_OS_WIN_TODO)
#if defined(Q_OS_WIN)
if (parser.isSet(noAeroSnap))
internalFlags |= KDDockWidgets::Config::InternalFlag_NoAeroSnap;
#endif