Use TextField of QtQuickControls instead of Plasma
Prefer the native widget. Disadvantage: clear button is missing. REVIEW: 116691
This commit is contained in:
parent
a31efea704
commit
e551e34403
1 changed files with 4 additions and 7 deletions
|
@ -22,7 +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
|
||||
import org.kde.plasma.core 2.0
|
||||
|
||||
Item {
|
||||
signal changed
|
||||
|
@ -64,14 +64,11 @@ Item {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
PlasmaComponents.TextField {
|
||||
TextField {
|
||||
// TODO: needs clear button, missing in Qt
|
||||
id: searchField
|
||||
clearButtonShown: true
|
||||
placeholderText: i18n("Search Plugins")
|
||||
Layout.fillWidth: true
|
||||
height: 20
|
||||
anchors {
|
||||
top: hint.bottom
|
||||
}
|
||||
focus: true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue