mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-16 10:24:45 +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
|
// 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
|
// sense to move it to a new floating widget and leave this one
|
||||||
// empty
|
// empty
|
||||||
if (m_DockArea->dockContainer()->isFloating() && m_DockArea->dockContainer()->dockAreaCount() == 1)
|
if (m_DockArea->dockContainer()->isFloating()
|
||||||
|
&& m_DockArea->dockContainer()->visibleDockAreaCount() == 1)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,6 @@ static QPixmap createDropIndicatorPixmap(const QPalette& pal, const QSizeF& size
|
|||||||
if (CDockOverlay::ModeContainerOverlay == Mode && DockWidgetArea != CenterDockWidgetArea)
|
if (CDockOverlay::ModeContainerOverlay == Mode && DockWidgetArea != CenterDockWidgetArea)
|
||||||
{
|
{
|
||||||
baseRect = areaRect;
|
baseRect = areaRect;
|
||||||
areaRect = QRectF();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p.fillRect(baseRect, backgroundColor);
|
p.fillRect(baseRect, backgroundColor);
|
||||||
|
@ -167,7 +167,7 @@ bool DockWidgetTitleBarPrivate::startFloating()
|
|||||||
// then it does not make any sense, to make if floating because
|
// then it does not make any sense, to make if floating because
|
||||||
// it is already floating
|
// it is already floating
|
||||||
if (DockWidget->dockContainer()->isFloating()
|
if (DockWidget->dockContainer()->isFloating()
|
||||||
&& (DockWidget->dockContainer()->dockAreaCount() == 1)
|
&& (DockWidget->dockContainer()->visibleDockAreaCount() == 1)
|
||||||
&& (DockWidget->dockAreaWidget()->count() == 1))
|
&& (DockWidget->dockAreaWidget()->count() == 1))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user