windows: Remove some Q_OS_WIN_TODO from FloatingWindow

This commit is contained in:
Sergio Martins
2022-05-30 22:44:52 +01:00
parent 83cc6f1b0c
commit 340e65df0b
2 changed files with 10 additions and 3 deletions

View File

@@ -33,6 +33,13 @@
#include <QTimer>
#include <QWindow>
#ifdef Q_OS_WIN
#define NOMINMAX
#include <Windows.h>
#endif
#include <limits>
using namespace KDDockWidgets;
using namespace KDDockWidgets::Controllers;
@@ -335,7 +342,7 @@ Layout *FloatingWindow::layout() const
bool FloatingWindow::isInDragArea(QPoint globalPoint) const
{
#ifdef Q_OS_WIN_TODO
#ifdef Q_OS_WIN
// A click near the border will still send a Qt::NonClientMousePressEvent. We shouldn't
// interpret that as a drag, as it's for a native resize.
// Keep track of how we handled the WM_NCHITTEST

View File

@@ -58,7 +58,7 @@ public:
static void ensureRectIsOnScreen(QRect &geometry);
#ifdef Q_OS_WIN_TODO
#ifdef Q_OS_WIN
void setLastHitTest(int hitTest)
{
m_lastHitTest = hitTest;
@@ -242,7 +242,7 @@ private:
KDBindings::ScopedConnection m_visibleWidgetCountConnection;
QAbstractNativeEventFilter *m_nchittestFilter = nullptr;
Qt::WindowState windowStateOverride() const;
#ifdef Q_OS_WIN_TODO
#ifdef Q_OS_WIN
int m_lastHitTest = 0;
#endif
};