From 58ef035603b8e3bf9299b4bddcdebcc653ea8810 Mon Sep 17 00:00:00 2001 From: SineStriker <trueful@163.com> Date: 周五, 29 12月 2023 11:50:33 +0800 Subject: [PATCH] Window bar support I18N --- 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