diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 15:07:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 15:07:44 -0700 |
commit | fd96daca6a170bfd2ecac45b403c93c63b8473d2 (patch) | |
tree | 91b88f5f714cddfa7890dcb568b3ae3b1e5ed25b /mobile-widgets/qmlmanager.cpp | |
parent | 8e5c211e2107ee8ac8e09bfd23a9a6e05676ae8c (diff) | |
download | subsurface-fd96daca6a170bfd2ecac45b403c93c63b8473d2.tar.gz |
QML UI: add progress message variable
To be shared between C/C++ and QML code in order to show the updates
and potential error messages from libdivecomputer.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index f0586bdf6..9e8ee226f 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1508,6 +1508,17 @@ void QMLManager::setShowPin(bool enable) emit showPinChanged(); } +QString QMLManager::progressMessage() const +{ + return m_progressMessage; +} + +void QMLManager::setProgressMessage(QString text) +{ + m_progressMessage = text; + emit progressMessageChanged(); +} + #if defined (Q_OS_ANDROID) |