From 07c3bff2f8d925b79f8da59230cdfd3caef2653d Mon Sep 17 00:00:00 2001 From: CozmoP <25121396+CozmoP@users.noreply.github.com> Date: Fri, 11 Jan 2019 01:31:27 +0100 Subject: [PATCH] Qt: set fixed height to search and core selection widgets --- ui/drivers/qt/ui_qt_window.cpp | 1 + ui/drivers/ui_qt.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index 24622df8f1..cc8d1f5c37 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -553,6 +553,7 @@ MainWindow::MainWindow(QWidget *parent) : m_searchDock->setProperty("default_area", Qt::LeftDockWidgetArea); m_searchDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SEARCH)); m_searchDock->setWidget(m_searchWidget); + m_searchDock->setFixedHeight(m_searchDock->minimumSizeHint().height()); addDockWidget(static_cast(m_searchDock->property("default_area").toInt()), m_searchDock); diff --git a/ui/drivers/ui_qt.cpp b/ui/drivers/ui_qt.cpp index ecc5e78c61..4c15cf0c14 100644 --- a/ui/drivers/ui_qt.cpp +++ b/ui/drivers/ui_qt.cpp @@ -501,6 +501,7 @@ static void* ui_companion_qt_init(void) coreSelectionDock->setProperty("default_area", Qt::LeftDockWidgetArea); coreSelectionDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_CORE)); coreSelectionDock->setWidget(coreSelectionWidget); + coreSelectionDock->setFixedHeight(coreSelectionDock->minimumSizeHint().height()); mainwindow->addDockWidget(static_cast(coreSelectionDock->property("default_area").toInt()), coreSelectionDock);