mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 10:43:13 +08: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
@ -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…
x
Reference in New Issue
Block a user