QML UI: make run with Qt 5.7 again
onPressed needs to be relative to Keys in Qt 5.7. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8bf412720
commit
73c66e1d7d
@ -13,7 +13,7 @@ TextField {
|
||||
onTextChanged: {
|
||||
textUpdateTimer.restart();
|
||||
}
|
||||
onPressed: frame.shouldShow = !frame.shouldShow
|
||||
Keys.onPressed: frame.shouldShow = !frame.shouldShow
|
||||
Keys.onUpPressed: {
|
||||
hintsView.currentIndex--;
|
||||
}
|
||||
@ -88,7 +88,7 @@ TextField {
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
onCurrentIndexChanged: root.text = model[currentIndex];
|
||||
|
||||
|
||||
delegate: Kirigami.BasicListItem {
|
||||
label: modelData
|
||||
topPadding: 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user