windows: Replace Q_OS_WIN with Q_OS_WIN_TODO so we can start porting

Now it builds. This way I can port each Q_OS_WIN one by one and make
sure everything still builds, without risking breaking Linux/macOS.
This commit is contained in:
Sergio Martins
2022-05-30 21:55:49 +01:00
parent 08dc12e8d7
commit d8e703275f
20 changed files with 51 additions and 50 deletions

View File

@@ -152,7 +152,7 @@ int main(int argc, char **argv)
parser.addOption(nativeTitleBar);
parser.addOption(noDropIndicators);
#if defined(Q_OS_WIN)
#if defined(Q_OS_WIN_TODO)
QCommandLineOption noAeroSnap("no-aero-snap", QCoreApplication::translate("main", "(internal) Disable AeroSnap"));
parser.addOption(noAeroSnap);
#endif
@@ -198,7 +198,7 @@ int main(int argc, char **argv)
if (parser.isSet(noDropIndicators))
KDDockWidgets::ViewFactory::s_dropIndicatorType = KDDockWidgets::DropIndicatorType::None;
#if defined(Q_OS_WIN)
#if defined(Q_OS_WIN_TODO)
if (parser.isSet(noAeroSnap))
internalFlags |= KDDockWidgets::Config::InternalFlag_NoAeroSnap;
#endif