Commit 7c8ae90f authored by Nate Graham's avatar Nate Graham
Browse files

Port to SearchField

parent 1d920648
Pipeline #146223 passed with stage
in 1 minute and 25 seconds
......@@ -8,6 +8,7 @@ import QtQuick 2.2
import QtQuick.Layouts 1.2
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kquickcontrolsaddons 2.0
......@@ -146,16 +147,12 @@ RowLayout {
}
}
PlasmaComponents3.TextField {
PlasmaExtras.SearchField {
id: searchTextField
Layout.fillWidth: true
inputMethodHints: Qt.ImhNoPredictiveText
focus: !Kirigami.InputMethod.willShowOnActive
clearButtonShown: true
placeholderText: i18nc("text field placeholder text", "Search…")
onTextChanged: {
appletProxyModel.setFilterRegExp(text)
......
......@@ -50,7 +50,7 @@ Item {
sourceModel: connectionModel
}
QQC2.TextField {
Kirigami.SearchField {
id: searchField
anchors {
......@@ -59,8 +59,6 @@ Item {
top: parent.top
}
placeholderText: i18n("Search…")
onTextChanged: {
editorProxyModel.setFilterRegExp(text)
}
......
Supports Markdown
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