Commit b8d35b0a authored by Nate Graham's avatar Nate Graham
Browse files

Port to Kirigami.SearchField

No need to manufacture our own, especially now that the Kirigami version
has a delayed auto-accept feature, which is perfect for our use case.
parent c90373b8
......@@ -9,17 +9,12 @@ import QtQuick 2.5
import QtQuick.Controls 2.1
import org.kde.kirigami 2.14 as Kirigami
Kirigami.ActionTextField
Kirigami.SearchField
{
id: searchField
focusSequence: "Ctrl+F"
rightActions: [
Kirigami.Action {
iconName: "edit-clear"
visible: searchField.text.length !== 0
onTriggered: searchField.clearText()
}
]
// Search operations are network-intensive, so delay the auto-accept
delaySearch: true
property QtObject page
property string currentSearchText
......
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