From 1d9902b6908257b8b2861c4c7dbe7eb9dd547a59 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Wed, 7 Sep 2022 13:31:44 +0800 Subject: [PATCH] Make tabs menu hidden when overlayed --- src/DockAreaWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 70f7389..a247a63 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -362,7 +362,9 @@ void DockAreaWidgetPrivate::updateTitleBarButtonStates() _this->features().testFlag(CDockWidget::DockWidgetClosable)); TitleBar->button(TitleBarButtonUndock)->setEnabled( _this->features().testFlag(CDockWidget::DockWidgetFloatable)); + // Undock and tabs should never show when overlayed TitleBar->button(TitleBarButtonUndock)->setVisible(!_this->isOverlayed()); + TitleBar->button(TitleBarButtonTabsMenu)->setVisible(!_this->isOverlayed()); TitleBar->updateDockWidgetActionsButtons(); UpdateTitleBarButtons = false; }