Fixed some small bugs in drop indicator painting

This commit is contained in:
Uwe Kindler
2017-03-27 16:16:22 +02:00
parent 7ba3c1f244
commit 549646d113
2 changed files with 13 additions and 3 deletions

View File

@@ -168,6 +168,13 @@ protected:
*/
virtual void mouseDoubleClickEvent(QMouseEvent *event) override
{
// If this is the last dock area in a dock container it does not make
// sense to move it to a new floating widget and leave this one
// empty
if (m_DockArea->dockContainer()->isFloating() && m_DockArea->dockContainer()->dockAreaCount() == 1)
{
return;
}
startFloating(event->pos());
}