[kcmkwin] Add a clear button to the Desktop Effects search field
Summary: This patch adds a clear button to the Desktop Effects search field by using Kirigami's SearchField. Test Plan: {F6973312} Reviewers: #kwin, #vdg, davidedmundson, ngraham Reviewed By: #kwin, #vdg, davidedmundson, ngraham Subscribers: ngraham, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D22286
This commit is contained in:
parent
20205f93f7
commit
f2bbb60419
1 changed files with 2 additions and 5 deletions
|
@ -21,7 +21,7 @@ import QtQuick.Controls 2.5 as QtControls
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kcm 1.2
|
import org.kde.kcm 1.2
|
||||||
import org.kde.kconfig 1.0
|
import org.kde.kconfig 1.0
|
||||||
import org.kde.kirigami 2.5 as Kirigami
|
import org.kde.kirigami 2.8 as Kirigami
|
||||||
import org.kde.private.kcms.kwin.effects 1.0 as Private
|
import org.kde.private.kcms.kwin.effects 1.0 as Private
|
||||||
|
|
||||||
ScrollViewKCM {
|
ScrollViewKCM {
|
||||||
|
@ -36,13 +36,10 @@ ScrollViewKCM {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
QtControls.TextField {
|
Kirigami.SearchField {
|
||||||
id: searchField
|
id: searchField
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
// TODO: Needs clear button, missing in Qt.
|
|
||||||
placeholderText: i18n("Search...")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.Button {
|
QtControls.Button {
|
||||||
|
|
Loading…
Reference in a new issue