From 9dcea027f16c4ce5852da3dfc8aca284c582bd7d Mon Sep 17 00:00:00 2001
From: sola.lu <sola.lu.greentest.com.cn>
Date: 周五, 06 6月 2025 18:19:18 +0800
Subject: [PATCH] 1.注释掉custom margin,解决程序放大后,遮盖窗口底部内容的问题。

---
 examples/shared/widgetframe/windowbar.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/examples/shared/widgetframe/windowbar.h b/examples/shared/widgetframe/windowbar.h
index e8ea69b..e9cf04c 100644
--- a/examples/shared/widgetframe/windowbar.h
+++ b/examples/shared/widgetframe/windowbar.h
@@ -1,3 +1,7 @@
+// Copyright (C) 2023-2024 Stdware Collections (https://www.github.com/stdware)
+// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
+// SPDX-License-Identifier: Apache-2.0
+
 #ifndef WINDOWBAR_H
 #define WINDOWBAR_H
 
@@ -21,6 +25,7 @@
         QMenuBar *menuBar() const;
         QLabel *titleLabel() const;
         QAbstractButton *iconButton() const;
+        QAbstractButton *pinButton() const;
         QAbstractButton *minButton() const;
         QAbstractButton *maxButton() const;
         QAbstractButton *closeButton() const;
@@ -28,6 +33,7 @@
         void setMenuBar(QMenuBar *menuBar);
         void setTitleLabel(QLabel *label);
         void setIconButton(QAbstractButton *btn);
+        void setPinButton(QAbstractButton *btn);
         void setMinButton(QAbstractButton *btn);
         void setMaxButton(QAbstractButton *btn);
         void setCloseButton(QAbstractButton *btn);
@@ -35,6 +41,7 @@
         QMenuBar *takeMenuBar();
         QLabel *takeTitleLabel();
         QAbstractButton *takeIconButton();
+        QAbstractButton *takePinButton();
         QAbstractButton *takeMinButton();
         QAbstractButton *takeMaxButton();
         QAbstractButton *takeCloseButton();
@@ -49,6 +56,7 @@
         void setIconFollowWindow(bool value);
 
     Q_SIGNALS:
+        void pinRequested(bool pin = false);
         void minimizeRequested();
         void maximizeRequested(bool max = false);
         void closeRequested();

--
Gitblit v1.9.1