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

@@ -32,7 +32,7 @@
#include <QShortcut>
#include <QDir>
#ifdef Q_OS_WIN_TODO
#ifdef Q_OS_WIN
#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_TODO
#ifdef Q_OS_WIN
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_TODO
#ifdef Q_OS_WIN
void ObjectViewer::sendHitTest()
{
if (auto w = selectedWidget()) {