mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-30 20:06:56 -05:00
Minor combo box fixes
This commit is contained in:
@@ -2734,6 +2734,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="NoScrollComboBox" name="comboBox_EncounterGroupLabel">
|
||||
<property name="editable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::SizeAdjustPolicy::AdjustToContents</enum>
|
||||
</property>
|
||||
|
||||
@@ -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<const QString &>::of(&QComboBox::textActivated), [&tempFields, ¤tField, &updateTotal, index](QString newGroupName) {
|
||||
for (EncounterField &field : tempFields) {
|
||||
if (field.name == currentField.name) {
|
||||
|
||||
Reference in New Issue
Block a user