mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
Fixed DockAreaWidget minimumSizeHint
This commit is contained in:
parent
1781fa671d
commit
c8fe4c46dd
@ -324,7 +324,6 @@ struct DockAreaWidgetPrivate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// struct DockAreaWidgetPrivate
|
|
||||||
|
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
@ -974,7 +973,19 @@ bool CDockAreaWidget::isCentralWidgetArea() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
QSize CDockAreaWidget::minimumSizeHint() const
|
QSize CDockAreaWidget::minimumSizeHint() const
|
||||||
{
|
{
|
||||||
return d->MinSizeHint.isValid() ? d->MinSizeHint : Super::minimumSizeHint();
|
if (!d->MinSizeHint.isValid())
|
||||||
|
{
|
||||||
|
return Super::minimumSizeHint();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (d->TitleBar->isVisible())
|
||||||
|
{
|
||||||
|
return d->MinSizeHint + QSize(0, d->TitleBar->minimumSizeHint().height());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return d->MinSizeHint;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user