diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 14:23:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 16:10:50 -0700 |
commit | 8414f8392690861b98ea59e9f412ca18e2b25f67 (patch) | |
tree | bbf72125e74ff86ee104bd2e77738d64034c00a6 /mobile-widgets/qmlmanager.h | |
parent | 6aaa9a40b6ca57b018f1c9172049dbe34b8632f8 (diff) | |
download | subsurface-8414f8392690861b98ea59e9f412ca18e2b25f67.tar.gz |
mobile/cleanup: create helper function to hide verbose casts
The strange enum casts (that apparently we needed in order to have strongly typed
enums in QML) are really ugly and confusing in the code. Since we had this three
times it seemed worth to create a little helper that hides this nonsense.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index e37f1c474..fd353cb76 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -170,6 +170,7 @@ public: #endif qPrefCloudStorage::cloud_status oldStatus() const; void setOldStatus(const qPrefCloudStorage::cloud_status value); + void rememberOldStatus(); public slots: void appInitialized(); |