Qt: set fixed height to search and core selection widgets

This commit is contained in:
CozmoP 2019-01-11 01:31:27 +01:00
parent 7cac57a09a
commit 07c3bff2f8
2 changed files with 2 additions and 0 deletions

View File

@ -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<Qt::DockWidgetArea>(m_searchDock->property("default_area").toInt()), m_searchDock);

View File

@ -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<Qt::DockWidgetArea>(coreSelectionDock->property("default_area").toInt()), coreSelectionDock);