From 03f57b0345b06b54f1b2cb0c0983a42ca8e1a23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Thu, 17 Oct 2019 02:06:24 +0200 Subject: [PATCH] Dialer: Port to Kirigami.SearchField Also remove visible condition, it makes it impossible to remove the search query if no results are found. --- dialer/src/contents/ui/Dialer/ContactsList.qml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dialer/src/contents/ui/Dialer/ContactsList.qml b/dialer/src/contents/ui/Dialer/ContactsList.qml index 2fd03055..bdda26fd 100644 --- a/dialer/src/contents/ui/Dialer/ContactsList.qml +++ b/dialer/src/contents/ui/Dialer/ContactsList.qml @@ -20,7 +20,7 @@ import QtQuick 2.0 import QtQuick.Controls 2.2 as Controls import QtQuick.Layouts 1.1 -import org.kde.kirigami 2.7 as Kirigami +import org.kde.kirigami 2.8 as Kirigami import org.kde.people 1.0 as KPeople import org.kde.plasma.core 2.0 as PlasmaCore @@ -35,21 +35,11 @@ Item { ColumnLayout { anchors.fill: parent - Kirigami.ActionTextField { + Kirigami.SearchField { id: searchField - visible: contactsList.count > 0 Layout.fillWidth: true - placeholderText: i18n("Search...") - rightActions: [ - Kirigami.Action { - icon.name: "edit-clear" - onTriggered: searchField.text = "" - visible: searchField.text !== "" - } - ] } - Controls.ScrollView { id: contactScrollView Layout.fillWidth: true