From 553522e30c6c07223ba6d476bf557a67f723a719 Mon Sep 17 00:00:00 2001 From: Whale107 <72391936+Whale107@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:33:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A6=82=E6=9E=9C=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=97=B6=E5=8D=B3=E4=B8=BA=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=8C=96=E7=8A=B6=E6=80=81,=E5=88=99=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=8C=96=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#601)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 窗口打开时没有windowstatechanged事件,不会去设置窗口状态,在showEvent中处理一下 Log: Bug: https://pms.uniontech.com/bug-view-262201.html Influence: mainwindow最大化 --- src/widgets/dtitlebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dtitlebar.cpp b/src/widgets/dtitlebar.cpp index 6c32eeaf1..4ad05f3fa 100644 --- a/src/widgets/dtitlebar.cpp +++ b/src/widgets/dtitlebar.cpp @@ -1104,7 +1104,7 @@ bool DTitlebar::eventFilter(QObject *obj, QEvent *event) switch (event->type()) { case QEvent::ShowToParent: d->handleParentWindowIdChange(); - d->updateButtonsState(d->targetWindow()->windowFlags()); + d->handleParentWindowStateChange(); break; case QEvent::Resize: if (d->autoHideOnFullscreen) {