Set autoRaise property to true for QToolButton of DockWidgetTab

This commit is contained in:
Uwe Kindler 2019-09-13 08:27:02 +02:00
parent 2c7764ecf7
commit c5e7104413

View File

@ -129,7 +129,9 @@ struct DockWidgetTabPrivate
{ {
if (testConfigFlag(CDockManager::TabCloseButtonIsToolButton)) if (testConfigFlag(CDockManager::TabCloseButtonIsToolButton))
{ {
return new QToolButton(); auto Button = new QToolButton();
Button->setAutoRaise(true);
return Button;
} }
else else
{ {