Use TextField of QtQuickControls instead of Plasma

Prefer the native widget. Disadvantage: clear button is missing.

REVIEW: 116691
This commit is contained in:
Martin Gräßlin 2014-03-10 09:47:26 +01:00
parent a31efea704
commit e551e34403

View file

@ -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
}