From 505ff4032a9c936c74880aa7046c515b51b285c6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 3 Nov 2019 05:46:40 -0800 Subject: Mobile: add UI feature tests to Developer menu Running Subsurface-mobile on iOS, the notification texts are sometimes very hard to read, and in some situations the busy indicator isn't showing up at all. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 2ac521ec4..fbaba37d5 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -451,7 +451,22 @@ if you have network connectivity and want to sync your data to cloud storage."), pageStack.push(logWindow) } } - + Kirigami.Action { + text: qsTr("Test busy indicator (toggle)") + onTriggered: { + if (busy.running) { + hideBusy() + } else { + showBusy() + } + } + } + Kirigami.Action { + text: qsTr("Test notification text") + onTriggered: { + showPassiveNotification(qsTr("Test notification text"), 5000) + } + } Kirigami.Action { text: qsTr("Theme information") onTriggered: { -- cgit v1.2.3-70-g09d2