Commit f5b9cad1 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[widgets][dialogs] Make new dialog comboboxes searchable

This patch makes the combo boxes editable so the user
can start typing what he is looking for rather than
having to scroll a possibly long list of assets.

Fixes #227
parent 12a3ff65
Pipeline #41807 passed with stage
in 11 minutes and 30 seconds
......@@ -120,6 +120,16 @@ class AssetCreationDialog(QDialog, CreationType):
button_group.addButton(self.new_version_radio_button)
button_group.addButton(self.fork_radio_button)
# Combo boxes setup:
for combobox in [
self.toolchain_combobox,
self.new_version_combobox,
self.fork_combobox,
]:
if combobox:
combobox.setEditable(True)
combobox.setInsertPolicy(QComboBox.NoInsert)
# Layouts
fork_layout = QVBoxLayout()
fork_layout.addWidget(self.fork_combobox)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment