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

@@ -537,7 +537,7 @@ bool DockContainerWidgetPrivate::restoreDockArea(QXmlStreamReader& s,
return true;
}
if (!DockArea->count())
if (!DockArea->dockWidgetsCount())
{
delete DockArea;
DockArea = nullptr;
@@ -1073,9 +1073,11 @@ QSplitter* CDockContainerWidget::rootSplitter() const
//============================================================================
void CDockContainerWidget::dumpLayout()
{
#if (ADS_DEBUG_LEVEL > 0)
qDebug("\n\nDumping layout --------------------------");
d->dumpRecursive(0, d->RootSplitter);
qDebug("--------------------------\n\n");
#endif
}