mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed startFloating() for FloatingDockContainer if only one DockArea is visble
This commit is contained in:
parent
844c853768
commit
051c379e4a
@ -145,7 +145,8 @@ protected:
|
||||
// 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)
|
||||
if (m_DockArea->dockContainer()->isFloating()
|
||||
&& m_DockArea->dockContainer()->visibleDockAreaCount() == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -93,7 +93,6 @@ static QPixmap createDropIndicatorPixmap(const QPalette& pal, const QSizeF& size
|
||||
if (CDockOverlay::ModeContainerOverlay == Mode && DockWidgetArea != CenterDockWidgetArea)
|
||||
{
|
||||
baseRect = areaRect;
|
||||
areaRect = QRectF();
|
||||
}
|
||||
|
||||
p.fillRect(baseRect, backgroundColor);
|
||||
|
@ -167,7 +167,7 @@ bool DockWidgetTitleBarPrivate::startFloating()
|
||||
// then it does not make any sense, to make if floating because
|
||||
// it is already floating
|
||||
if (DockWidget->dockContainer()->isFloating()
|
||||
&& (DockWidget->dockContainer()->dockAreaCount() == 1)
|
||||
&& (DockWidget->dockContainer()->visibleDockAreaCount() == 1)
|
||||
&& (DockWidget->dockAreaWidget()->count() == 1))
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user