fixed the default height of the statusbar

This commit is contained in:
Roman Pudashkin 2021-06-03 09:30:32 +02:00
parent a9a7e5ba01
commit f1fd88d070
2 changed files with 6 additions and 4 deletions

View file

@ -231,10 +231,6 @@ DockPage {
objectName: "notationStatusBar"
height: root.toolBarHeight
minimumHeight: root.toolBarHeight
maximumHeight: root.toolBarHeight
NotationStatusBar {
color: root.color
visible: root.pageModel.isStatusBarVisible

View file

@ -28,6 +28,12 @@ DockStatusBar::DockStatusBar(QQuickItem* parent)
: DockBase(parent)
{
setAllowedAreas(Qt::BottomDockWidgetArea);
constexpr int STATUS_BAR_HEIGHT = 36;
setMinimumHeight(STATUS_BAR_HEIGHT);
setMaximumHeight(STATUS_BAR_HEIGHT);
setHeight(STATUS_BAR_HEIGHT);
}
DockType DockStatusBar::type() const