aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-14 09:22:01 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-14 09:50:57 -0700
commit73c66e1d7d9ffd15d37419824ae4459be561f7d6 (patch)
tree9f5765fbf783f4472ba25a52dfe287175e8f3f56 /mobile-widgets/qml
parentc8bf412720fb917602eea33460d9323ee4538deb (diff)
downloadsubsurface-73c66e1d7d9ffd15d37419824ae4459be561f7d6.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/HintsTextEdit.qml4
1 files changed, 2 insertions, 2 deletions
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