From f1fd88d0709467d9a505f318ba6b793c758b8801 Mon Sep 17 00:00:00 2001 From: Roman Pudashkin Date: Thu, 3 Jun 2021 09:30:32 +0200 Subject: [PATCH] fixed the default height of the statusbar --- src/appshell/qml/NotationPage/NotationPage.qml | 4 ---- src/appshell/view/dockwindow/dockstatusbar.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/appshell/qml/NotationPage/NotationPage.qml b/src/appshell/qml/NotationPage/NotationPage.qml index fb8af44245..1e07e38706 100644 --- a/src/appshell/qml/NotationPage/NotationPage.qml +++ b/src/appshell/qml/NotationPage/NotationPage.qml @@ -231,10 +231,6 @@ DockPage { objectName: "notationStatusBar" - height: root.toolBarHeight - minimumHeight: root.toolBarHeight - maximumHeight: root.toolBarHeight - NotationStatusBar { color: root.color visible: root.pageModel.isStatusBarVisible diff --git a/src/appshell/view/dockwindow/dockstatusbar.cpp b/src/appshell/view/dockwindow/dockstatusbar.cpp index 0b556d0070..29d08fb6a9 100644 --- a/src/appshell/view/dockwindow/dockstatusbar.cpp +++ b/src/appshell/view/dockwindow/dockstatusbar.cpp @@ -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