mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -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...");
|
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
|
ScrollView
|
||||||
|
@ -165,6 +175,7 @@ Item {
|
||||||
}
|
}
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
|
id:listview
|
||||||
model: UM.SettingDefinitionsModel
|
model: UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
id: definitionsModel;
|
id: definitionsModel;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue