diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-19 18:41:10 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-19 18:41:50 -0800 |
commit | c3ebeadb340300a04158d677ff52a53523698921 (patch) | |
tree | 9409266da4ef654f9ea34e686a6f5a27c9696168 /qt-mobile/qmlmanager.cpp | |
parent | 41c59c1c8d0d05ad8169aed9a039259d5a707570 (diff) | |
download | subsurface-c3ebeadb340300a04158d677ff52a53523698921.tar.gz |
QML-UI: allow toggling verbose mode from the UI
Hidden in the Developer menu.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index f922b9b51..ca4102370 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -387,6 +387,19 @@ void QMLManager::setLocationServiceEnabled(bool locationServiceEnabled) locationProvider->serviceEnable(m_locationServiceEnabled); } +bool QMLManager::verboseEnabled() const +{ + return m_verboseEnabled; +} + +void QMLManager::setVerboseEnabled(bool verboseMode) +{ + m_verboseEnabled = verboseMode; + verbose = verboseMode; + qDebug() << "verbose is" << verbose; + emit verboseEnabledChanged(); +} + QString QMLManager::cloudPassword() const { return m_cloudPassword; |