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/widgets/widgetwindowagent.h | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/widgets/widgetwindowagent.h b/src/widgets/widgetwindowagent.h index bc092d2..d159448 100644 --- a/src/widgets/widgetwindowagent.h +++ b/src/widgets/widgetwindowagent.h @@ -26,12 +26,20 @@ QWidget *systemButton(SystemButton button) const; void setSystemButton(SystemButton button, QWidget *w); +#ifdef Q_OS_MAC + // The system button area APIs are experimental, may be changed in the future. + QWidget *systemButtonArea() const; + void setSystemButtonArea(QWidget *widget); + + ScreenRectCallback systemButtonAreaCallback() const; + void setSystemButtonAreaCallback(const ScreenRectCallback &callback); +#endif + bool isHitTestVisible(const QWidget *w) const; void setHitTestVisible(const QWidget *w, bool visible = true); - void setHitTestVisible(const QRect &rect, bool visible = true); Q_SIGNALS: - void titleBarWidgetChanged(const QWidget *w); + void titleBarChanged(const QWidget *w); void systemButtonChanged(SystemButton button, const QWidget *w); protected: -- Gitblit v1.9.1