From e8b5955791156828be0d21392a37a19038d70d78 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周五, 23 2月 2024 22:23:15 +0800 Subject: [PATCH] Add include --- src/core/kernel/winidchangeeventfilter.cpp | 2 +- src/core/contexts/win32windowcontext.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp index 841273a..25a5d8a 100644 --- a/src/core/contexts/win32windowcontext.cpp +++ b/src/core/contexts/win32windowcontext.cpp @@ -10,10 +10,12 @@ #include <QtCore/QScopeGuard> #include <QtCore/QTimer> #include <QtCore/QDateTime> +#include <QtCore/QAbstractEventDispatcher> #include <QtGui/QGuiApplication> #include <QtGui/QPainter> #include <QtGui/QPalette> +#include <QtGui/qpa/qwindowsysteminterface.h> #include <QtGui/private/qhighdpiscaling_p.h> #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) # include <QtGui/private/qguiapplication_p.h> @@ -1478,8 +1480,11 @@ // Terminal does, however, later I found that if we choose a proper // color, our homemade top border can almost have exactly the same // appearance with the system's one. + qDebug() << QDateTime::currentDateTime() << "HITTEST"; [[maybe_unused]] const auto &hitTestRecorder = qScopeGuard([this, result]() { lastHitTestResult = getHitWindowPart(int(*result)); // + + qDebug() << lastHitTestResult; }); POINT nativeGlobalPos{GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)}; diff --git a/src/core/kernel/winidchangeeventfilter.cpp b/src/core/kernel/winidchangeeventfilter.cpp index b11d16a..2a0f95c 100644 --- a/src/core/kernel/winidchangeeventfilter.cpp +++ b/src/core/kernel/winidchangeeventfilter.cpp @@ -4,7 +4,7 @@ #include "winidchangeeventfilter_p.h" -#include <qpa/qplatformwindow.h> +#include <QtGui/qpa/qplatformwindow.h> #include "abstractwindowcontext_p.h" -- Gitblit v1.9.1