T562: Added searching of settings

# Conflicts:
#	resources/qml/Settings/SettingView.qml
This commit is contained in:
Victor Larchenko 2016-11-11 13:28:00 +06:00 committed by fieldOfView
parent 47bb8f9601
commit 829f8893e2

View file

@ -9,17 +9,46 @@ import QtQuick.Layouts 1.1
import UM 1.2 as UM
import Cura 1.0 as Cura
ScrollView
Item
{
id: base;
style: UM.Theme.styles.scrollview;
flickableItem.flickableDirection: Flickable.VerticalFlick;
property Action configureSettings;
signal showTooltip(Item item, point location, string text);
signal hideTooltip();
TextField
{
id: filter;
visible: !monitoringPrint
anchors
{
top: parent.top
left: parent.left
leftMargin: UM.Theme.getSize("default_margin").width
//right: parent.right
}
placeholderText: catalog.i18nc("@label:textbox", "Filter...")
onTextChanged: {
definitionsModel.filter = {"label": "*" + text};
definitionsModel.expanded = text.length > 0 ? ["*"] : [""]
}
}
ScrollView
{
anchors.top: filter.bottom;
anchors.bottom: parent.bottom;
anchors.right: parent.right;
anchors.left: parent.left;
anchors.topMargin: UM.Theme.getSize("default_margin").width
style: UM.Theme.styles.scrollview;
flickableItem.flickableDirection: Flickable.VerticalFlick;
ListView
{
id: contents
@ -234,4 +263,5 @@ ScrollView
storeIndex: 0
}
}
}
}