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

@@ -32,7 +32,7 @@
#include <QShortcut>
#include <QDir>
#ifdef Q_OS_WIN
#ifdef Q_OS_WIN_TODO
#include <windows.h>
#endif
@@ -68,7 +68,7 @@ ObjectViewer::ObjectViewer(QWidget *parent)
action = m_menu.addAction(QStringLiteral("Toggle Visible"));
connect(action, &QAction::triggered, this, &ObjectViewer::toggleVisible);
#ifdef Q_OS_WIN
#ifdef Q_OS_WIN_TODO
action = m_menu.addAction(QStringLiteral("Send WM_NCHITTEST"));
connect(action, &QAction::triggered, this, &ObjectViewer::sendHitTest);
#endif
@@ -113,7 +113,7 @@ void ObjectViewer::toggleVisible()
w->setVisible(!w->isVisible());
}
#ifdef Q_OS_WIN
#ifdef Q_OS_WIN_TODO
void ObjectViewer::sendHitTest()
{
if (auto w = selectedWidget()) {