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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user