From 68c8cc026233e9694579ce38b8daa25008477d18 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: ćšć, 28 12æ 2023 16:12:36 +0800 Subject: [PATCH] allow qml demo choose special effect --- src/quick/quickwindowagent_win.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/quick/quickwindowagent_win.cpp b/src/quick/quickwindowagent_win.cpp index 61ea0ed..57c5f40 100644 --- a/src/quick/quickwindowagent_win.cpp +++ b/src/quick/quickwindowagent_win.cpp @@ -101,6 +101,7 @@ bool BorderItem::nativeEventFilter(const QByteArray &eventType, void *message, QT_NATIVE_EVENT_RESULT_TYPE *result) { Q_UNUSED(eventType) + const auto msg = static_cast<const MSG *>(message); switch (msg->message) { case WM_THEMECHANGED: @@ -125,6 +126,7 @@ bool BorderItem::sharedEventFilter(QObject *obj, QEvent *event) { Q_UNUSED(obj) + switch (event->type()) { case QEvent::WindowStateChange: { updateGeometry(); -- Gitblit v1.9.1