mobile-widgets/qml: use strongly typed CloudStatus

Replace CloudStatus.<value> with backend.<value> as part
of making enum sharing between C/C++ and QML more robust.

Replace PrefCloudStorage.verification_status with
backend.verification_status to use the strongly typed function.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-05 17:08:48 +01:00 committed by Dirk Hohndel
parent c93b76eee6
commit 93c3a18db7
5 changed files with 17 additions and 17 deletions

View file

@ -27,7 +27,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
id: explanationTextBasic
visible: PrefCloudStorage.cloud_verification_status !== CloudStatus.CS_NEED_TO_VERIFY
visible: Backend.cloud_verification_status !== Enums.CS_NEED_TO_VERIFY
Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit
Layout.topMargin: Kirigami.Units.gridUnit * 3
@ -40,7 +40,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
id: explanationTextPin
visible: PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY
visible: Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY
Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit
Layout.topMargin: Kirigami.Units.gridUnit * 3