Qt: set fixed height to search and core selection widgets
This commit is contained in:
parent
7cac57a09a
commit
07c3bff2f8
|
@ -553,6 +553,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
m_searchDock->setProperty("default_area", Qt::LeftDockWidgetArea);
|
m_searchDock->setProperty("default_area", Qt::LeftDockWidgetArea);
|
||||||
m_searchDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SEARCH));
|
m_searchDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SEARCH));
|
||||||
m_searchDock->setWidget(m_searchWidget);
|
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);
|
addDockWidget(static_cast<Qt::DockWidgetArea>(m_searchDock->property("default_area").toInt()), m_searchDock);
|
||||||
|
|
||||||
|
|
|
@ -501,6 +501,7 @@ static void* ui_companion_qt_init(void)
|
||||||
coreSelectionDock->setProperty("default_area", Qt::LeftDockWidgetArea);
|
coreSelectionDock->setProperty("default_area", Qt::LeftDockWidgetArea);
|
||||||
coreSelectionDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_CORE));
|
coreSelectionDock->setProperty("menu_text", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_CORE));
|
||||||
coreSelectionDock->setWidget(coreSelectionWidget);
|
coreSelectionDock->setWidget(coreSelectionWidget);
|
||||||
|
coreSelectionDock->setFixedHeight(coreSelectionDock->minimumSizeHint().height());
|
||||||
|
|
||||||
mainwindow->addDockWidget(static_cast<Qt::DockWidgetArea>(coreSelectionDock->property("default_area").toInt()), coreSelectionDock);
|
mainwindow->addDockWidget(static_cast<Qt::DockWidgetArea>(coreSelectionDock->property("default_area").toInt()), coreSelectionDock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue