Fixed proper hiding of dock areas without any visible content when dragging out singkle widgets, prevente single dock widget from dragging if it is the last dock widget in a floating widget

This commit is contained in:
Uwe Kindler
2018-09-14 08:46:10 +02:00
parent b93e723a83
commit 6ec38b48ef
7 changed files with 110 additions and 58 deletions

View File

@@ -409,7 +409,9 @@ bool CFloatingDockContainer::event(QEvent *e)
break;
}
#if (ADS_DEBUG_LEVEL > 0)
qDebug() << "CFloatingDockContainer::event " << e->type();
#endif
return QWidget::event(e);
}
@@ -520,7 +522,7 @@ bool CFloatingDockContainer::hasSingleDockWidget() const
return false;
}
return d->DockContainer->dockArea(0)->count() == 1;
return d->DockContainer->dockArea(0)->dockWidgetsCount() == 1;
}