Skip to content

Commit c5e7104

Browse files
Set autoRaise property to true for QToolButton of DockWidgetTab
1 parent 2c7764e commit c5e7104

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DockWidgetTab.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ struct DockWidgetTabPrivate
129129
{
130130
if (testConfigFlag(CDockManager::TabCloseButtonIsToolButton))
131131
{
132-
return new QToolButton();
132+
auto Button = new QToolButton();
133+
Button->setAutoRaise(true);
134+
return Button;
133135
}
134136
else
135137
{

0 commit comments

Comments
 (0)