From 6d6b0066208f41babf583caf3828415d1a057a9f Mon Sep 17 00:00:00 2001 From: GriffinR Date: Thu, 1 May 2025 15:52:36 -0400 Subject: [PATCH] Minor combo box fixes --- forms/mainwindow.ui | 3 +++ src/editor.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 177f639f..c75c8328 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -2734,6 +2734,9 @@ + + false + QComboBox::SizeAdjustPolicy::AdjustToContents diff --git a/src/editor.cpp b/src/editor.cpp index fb870dff..d02006cd 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -496,6 +496,8 @@ void Editor::configureEncounterJSON(QWidget *window) { QVBoxLayout *slotChoiceLayout = new QVBoxLayout; if (useGroups) { auto groupCombo = new NoScrollComboBox; + groupCombo->setEditable(false); + groupCombo->setMinimumContentsLength(10); connect(groupCombo, QOverload::of(&QComboBox::textActivated), [&tempFields, ¤tField, &updateTotal, index](QString newGroupName) { for (EncounterField &field : tempFields) { if (field.name == currentField.name) {