fix tooltips for auto hide button and close button

This commit is contained in:
Syarif Fakhri
2022-09-09 14:43:59 +08:00
parent 22402e79f5
commit 621e5e7789
6 changed files with 46 additions and 14 deletions

View File

@@ -1058,7 +1058,8 @@ bool DockContainerWidgetPrivate::restoreOverlayDockArea(CDockingStateReader& s,
dockContainer->hide();
DockArea = dockContainer->dockAreaWidget();
DockArea->updateAutoHidebuttonCheckState();
DockArea->updateAutoHideButtonCheckState();
DockArea->updateTitleBarButtonToolTip();
}
while (s.readNextStartElement())
@@ -1653,7 +1654,8 @@ void CDockContainerWidget::removeDockArea(CDockAreaWidget* area)
dumpLayout();
d->emitDockAreasRemoved();
area->setOverlayDockContainer(nullptr);
area->updateAutoHidebuttonCheckState();
area->updateAutoHideButtonCheckState();
area->updateTitleBarButtonToolTip();
return;
}