From bdc57c6ec9b08f74ca65a06b8496fbaa3268c5fd Mon Sep 17 00:00:00 2001 From: Dylan Liu <mentalflow@ourdocs.cn> Date: 周六, 04 5月 2024 20:51:20 +0800 Subject: [PATCH] Fix macOS title bar buttons not displaying properly. --- src/quick/quickitemdelegate_p.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/quick/quickitemdelegate_p.h b/src/quick/quickitemdelegate_p.h index 55f2586..d72192c 100644 --- a/src/quick/quickitemdelegate_p.h +++ b/src/quick/quickitemdelegate_p.h @@ -38,12 +38,14 @@ bool isWindowActive(const QObject *host) const override; Qt::WindowStates getWindowState(const QObject *host) const override; Qt::WindowFlags getWindowFlags(const QObject *host) const override; + QRect getGeometry(const QObject *host) const override; void setWindowState(QObject *host, Qt::WindowStates state) const override; void setCursorShape(QObject *host, Qt::CursorShape shape) const override; void restoreCursorShape(QObject *host) const override; void setWindowFlags(QObject *host, Qt::WindowFlags flags) const override; void setWindowVisible(QObject *host, bool visible) const override; + void setGeometry(QObject *host, const QRect &rect) override; void bringWindowToTop(QObject *host) const override; }; -- Gitblit v1.9.1