mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Add config to make auto hide button optionally checkable for styling purposes
This commit is contained in:
parent
118e79e7ec
commit
d83ec7c66f
@ -197,6 +197,8 @@ void DockAreaTitleBarPrivate::createButtons()
|
||||
internal::setToolTip(AutoHideButton, QObject::tr("Toggle Auto Hide"));
|
||||
internal::setButtonIcon(AutoHideButton, QStyle::SP_DialogOkButton, ads::AutoHideIcon);
|
||||
AutoHideButton->setSizePolicy(ButtonSizePolicy);
|
||||
AutoHideButton->setCheckable(testConfigFlag(CDockManager::AutoHideButtonCheckable));
|
||||
AutoHideButton->setChecked(false);
|
||||
Layout->addWidget(AutoHideButton, 0);
|
||||
_this->connect(AutoHideButton, SIGNAL(clicked()), SLOT(onAutoHideButtonClicked()));
|
||||
|
||||
|
@ -233,6 +233,7 @@ public:
|
||||
TopSideBarPrioritizeIconOnly = 0x10, //!< If the flag is set top side bar will prioritize showing icons only over text
|
||||
AutoHideDockAreaHasTitle = 0x20, //!< If the flag is set overlay dock area title bar will show the window title
|
||||
AutoHideButtonTogglesArea = 0x40, //!< If the flag is set, the auto hide button enables auto hiding for all dock widgets in an area, if disabled, only the current dock widget will be toggled
|
||||
AutoHideButtonCheckable = 0x80, //!< If the flag is set, the auto hide button will be checked and unchecked depending on the auto hide state. Mainly for styling purposes.
|
||||
|
||||
DefaultAutoHideConfig = DockAreaHasAutoHideButton
|
||||
| AutoHideDockAreaHasTitle, ///< the default configuration for left and right side bars
|
||||
|
Loading…
Reference in New Issue
Block a user