From 73c66e1d7d9ffd15d37419824ae4459be561f7d6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 14 Apr 2017 09:22:01 -0700 Subject: 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 --- mobile-widgets/qml/HintsTextEdit.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml/HintsTextEdit.qml') diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml index b40acde2b..41ae2b225 100644 --- a/mobile-widgets/qml/HintsTextEdit.qml +++ b/mobile-widgets/qml/HintsTextEdit.qml @@ -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 -- cgit v1.2.3-70-g09d2