Add clear button to Search Field
This commit is contained in:
parent
14b66445e3
commit
8f6e40adbb
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,7 @@ import QtQuick 2.1
|
|||
import QtQuick.Controls 1.0
|
||||
import QtQuick.Layouts 1.0
|
||||
import org.kde.kwin.kwincompositing 1.0
|
||||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||
|
||||
Item {
|
||||
|
||||
|
@ -77,8 +78,9 @@ Item {
|
|||
top: parent.top
|
||||
left: parent.left
|
||||
}
|
||||
TextField {
|
||||
PlasmaComponents.TextField {
|
||||
id: searchField
|
||||
clearButtonShown: true
|
||||
Layout.fillWidth: true
|
||||
height: 20
|
||||
anchors {
|
||||
|
|
Loading…
Reference in a new issue