Implemented proper updating of floating widget title

This commit is contained in:
Uwe Kindler
2018-10-30 23:45:59 +01:00
parent 81523b0346
commit 6617cf6f19
11 changed files with 67 additions and 31 deletions

View File

@@ -927,7 +927,7 @@ int CDockContainerWidget::visibleDockAreaCount() const
int Result = 0;
for (auto DockArea : d->DockAreas)
{
Result += DockArea->isVisibleTo(this) ? 1 : 0;
Result += DockArea->isHidden() ? 0 : 1;
}
return Result;
@@ -982,9 +982,6 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi
{
TopLevelDockWidget->emitTopLevelChanged(false);
}
std::cout << "CDockContainerWidget::dropFloatingWidget " <<
Timer.restart() << std::endl;
}
@@ -994,7 +991,7 @@ QList<CDockAreaWidget*> CDockContainerWidget::openedDockAreas() const
QList<CDockAreaWidget*> Result;
for (auto DockArea : d->DockAreas)
{
if (DockArea->isVisibleTo(this))
if (!DockArea->isHidden())
{
Result.append(DockArea);
}