From a2f653f39f089668a8c3b0015e7bed2ca81b650f Mon Sep 17 00:00:00 2001 From: GriffinR Date: Wed, 31 Dec 2025 13:30:25 -0500 Subject: [PATCH] Allow resizing header tab inputs --- forms/mainwindow.ui | 151 +++++++++++++++++++++++---------------- forms/mapheaderform.ui | 3 - src/ui/mapheaderform.cpp | 3 - 3 files changed, 88 insertions(+), 69 deletions(-) diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 0e2a5dd5..6d0232a6 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -2176,11 +2176,8 @@ - - - - 0 - + + 0 @@ -2193,51 +2190,16 @@ 0 - - - - false + + 6 + + + + + Qt::Orientation::Horizontal - - - 0 - 0 - - - - QFrame::Shape::StyledPanel - - - QFrame::Shadow::Raised - - - - 9 - - - - - - - - QFrame::Shape::NoFrame - - - QFrame::Shadow::Plain - - - true - - - - - 0 - 0 - 1011 - 806 - - - + + 0 @@ -2250,13 +2212,16 @@ 0 - - + + + + false + - + 0 0 - + QFrame::Shape::StyledPanel @@ -2264,23 +2229,83 @@ QFrame::Shadow::Raised + + + 9 + + - - - - Qt::Orientation::Vertical + + + + QFrame::Shape::NoFrame - - - 1 - 767 - + + QFrame::Shadow::Plain + + + true - + + + + 0 + 0 + 1011 + 806 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + + Qt::Orientation::Vertical + + + + 1 + 767 + + + + + + + + + diff --git a/forms/mapheaderform.ui b/forms/mapheaderform.ui index 3db1688d..5b8e0ff4 100644 --- a/forms/mapheaderform.ui +++ b/forms/mapheaderform.ui @@ -17,9 +17,6 @@ Form - - QFormLayout::FieldGrowthPolicy::FieldsStayAtSizeHint - diff --git a/src/ui/mapheaderform.cpp b/src/ui/mapheaderform.cpp index 890face2..93cc7e7b 100644 --- a/src/ui/mapheaderform.cpp +++ b/src/ui/mapheaderform.cpp @@ -11,9 +11,6 @@ MapHeaderForm::MapHeaderForm(QWidget *parent) ui->spinBox_FloorNumber->setMinimum(INT_MIN); ui->spinBox_FloorNumber->setMaximum(INT_MAX); - // The layout for this UI keeps fields at their size hint, which is a little short for the line edit. - ui->lineEdit_LocationName->setMinimumWidth(ui->comboBox_Location->sizeHint().width()); - connect(ui->comboBox_Song, &QComboBox::currentTextChanged, this, &MapHeaderForm::onSongUpdated); connect(ui->comboBox_Location, &QComboBox::currentTextChanged, this, &MapHeaderForm::onLocationChanged); connect(ui->comboBox_Weather, &QComboBox::currentTextChanged, this, &MapHeaderForm::onWeatherChanged);