Fixed title bar button minimum size to enable stylesheet styling, fixed restore functionality

This commit is contained in:
Uwe Kindler
2018-11-07 13:50:43 +01:00
parent 115a9a5b3d
commit 6843703484
5 changed files with 132 additions and 60 deletions

View File

@@ -600,6 +600,21 @@ QList<CDockWidget*> CDockAreaWidget::openedDockWidgets() const
}
//============================================================================
int CDockAreaWidget::indexOfFirstOpenDockWidget() const
{
for (int i = 0; i < d->ContentsLayout->count(); ++i)
{
if (!dockWidget(i)->isClosed())
{
return i;
}
}
return -1;
}
//============================================================================
int CDockAreaWidget::dockWidgetsCount() const
{