mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:53:23 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ TextField {
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
textUpdateTimer.restart();
|
textUpdateTimer.restart();
|
||||||
}
|
}
|
||||||
onPressed: frame.shouldShow = !frame.shouldShow
|
Keys.onPressed: frame.shouldShow = !frame.shouldShow
|
||||||
Keys.onUpPressed: {
|
Keys.onUpPressed: {
|
||||||
hintsView.currentIndex--;
|
hintsView.currentIndex--;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ TextField {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
clip: true
|
clip: true
|
||||||
onCurrentIndexChanged: root.text = model[currentIndex];
|
onCurrentIndexChanged: root.text = model[currentIndex];
|
||||||
|
|
||||||
delegate: Kirigami.BasicListItem {
|
delegate: Kirigami.BasicListItem {
|
||||||
label: modelData
|
label: modelData
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue