mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added rudimentary filtering
Current implementation looks for an exact mach, whereas we should look for text in property. CURA-1278
This commit is contained in:
parent
e9380ba83d
commit
fc7f349801
1 changed files with 12 additions and 1 deletions
|
@ -149,7 +149,17 @@ Item {
|
|||
|
||||
placeholderText: catalog.i18nc("@label:textbox", "Filter...");
|
||||
|
||||
onTextChanged: settingPickDialog.labelFilter = text;
|
||||
onTextChanged:
|
||||
{
|
||||
if(text != "")
|
||||
{
|
||||
listview.model.filter.label = = {"global_only":"False", "label": text}
|
||||
}
|
||||
else
|
||||
{
|
||||
listview.model.filter = {"global_only":"False"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView
|
||||
|
@ -165,6 +175,7 @@ Item {
|
|||
}
|
||||
ListView
|
||||
{
|
||||
id:listview
|
||||
model: UM.SettingDefinitionsModel
|
||||
{
|
||||
id: definitionsModel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue