From 9628001f579d00aa2b555fc2f6b047120b3adedf Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Thu, 16 May 2024 00:24:58 +0200 Subject: [PATCH] #3864 possibility to search in army setting --- mapeditor/inspector/armywidget.cpp | 3 +++ mapeditor/inspector/armywidget.ui | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/mapeditor/inspector/armywidget.cpp b/mapeditor/inspector/armywidget.cpp index fcba00cf0..cadd580f3 100644 --- a/mapeditor/inspector/armywidget.cpp +++ b/mapeditor/inspector/armywidget.cpp @@ -40,6 +40,9 @@ ArmyWidget::ArmyWidget(CArmedInstance & a, QWidget *parent) : uiSlots[i]->insertItem(c + 1, creature->getNamePluralTranslated().c_str()); uiSlots[i]->setItemData(c + 1, creature->getIndex()); } + + uiSlots[i]->completer()->setCompletionMode(QCompleter::PopupCompletion); + uiSlots[i]->completer()->setFilterMode(Qt::MatchContains); } ui->formationTight->setChecked(true); diff --git a/mapeditor/inspector/armywidget.ui b/mapeditor/inspector/armywidget.ui index a6a512393..d442388cd 100644 --- a/mapeditor/inspector/armywidget.ui +++ b/mapeditor/inspector/armywidget.ui @@ -34,6 +34,9 @@ 0 + + true + @@ -44,6 +47,9 @@ 0 + + true + @@ -54,6 +60,9 @@ 0 + + true + @@ -64,6 +73,9 @@ 0 + + true + @@ -74,6 +86,9 @@ 0 + + true + @@ -84,6 +99,9 @@ 0 + + true + @@ -94,6 +112,9 @@ 0 + + true +