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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user