aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-18 06:46:50 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:30 +0100
commitf965492241d5bc447925a77e0936bae3dcb1bed7 (patch)
treef1b924b42deef944bf4237bc533bb0dd01ca99c5
parentcadb072a0c1897291920849458700c4f5878a2c3 (diff)
downloadsubsurface-f965492241d5bc447925a77e0936bae3dcb1bed7.tar.gz
Mobile/filtering: reset the filter text when toggled
This seemed less UI clutter than adding a clear button. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 9c2c9fbb8..dc805a394 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -415,6 +415,10 @@ Kirigami.ScrollablePage {
diveModel.setFilter(text)
numShown.text = diveModel.shown()
}
+ onVisibleChanged: {
+ // reset the filter when it gets toggled
+ text = ""
+ }
}
Controls.Label {
id: numShown