From 7239f6f4a39b25792a1cd7a39fc71759600af3bd Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 12 May 2025 12:01:35 -0400 Subject: [PATCH] Adjust minimum map list size --- src/mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 27109aa7..29d4a509 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -480,6 +480,15 @@ void MainWindow::initMapList() { ui->mapListContainer->setCornerWidget(navigationFrame, Qt::TopLeftCorner); + // Can't seem to get mapListContainer to update the size hint appropriately for + // the new corner widgets. The default size hint is too small, and the tabs will elide. + // For now we set an explicit minimum to fit both the tabs and buttons, and we make + // the buttons as small as they can reasonably be to maximize space for the tabs. + ui->mapListContainer->setMinimumWidth(285); + buttonAdd->setFixedWidth(25); + backArrow->setFixedWidth(15); + forwardArrow->setFixedWidth(15); + // Connect tool bars to lists ui->mapListToolBar_Groups->setList(ui->mapList); ui->mapListToolBar_Locations->setList(ui->locationList);