mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c93b76eee6
commit
93c3a18db7
5 changed files with 17 additions and 17 deletions
|
|
@ -45,7 +45,7 @@ Kirigami.ScrollablePage {
|
|||
color: subsurfaceTheme.textColor
|
||||
}
|
||||
Controls.Label {
|
||||
text: PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email
|
||||
text: Backend.cloud_verification_status === Enums.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
Layout.preferredWidth: gridWidth * 0.60
|
||||
color: subsurfaceTheme.textColor
|
||||
|
|
@ -54,7 +54,7 @@ Kirigami.ScrollablePage {
|
|||
id: changeCloudSettings
|
||||
text: qsTr("Change")
|
||||
onClicked: {
|
||||
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN
|
||||
Backend.cloud_verification_status = Enums.CS_UNKNOWN
|
||||
manager.startPageText = qsTr("Starting...");
|
||||
}
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ Kirigami.ScrollablePage {
|
|||
color: subsurfaceTheme.textColor
|
||||
}
|
||||
Controls.Label {
|
||||
text: describe[PrefCloudStorage.cloud_verification_status]
|
||||
text: describe[Backend.cloud_verification_status]
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
Layout.preferredWidth: gridWidth * 0.60
|
||||
Layout.preferredHeight: Kirigami.Units.gridUnit * 1.5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue