diff options
author | Grace Karanja <gracie.karanja89@gmail.com> | 2015-08-20 12:08:59 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-31 15:49:09 -0700 |
commit | 56771159a83d7791994bbf7f3cfed8c1459e2193 (patch) | |
tree | f53612c6b4e589d39699965b7287294e6f98ff6a /qt-mobile/qmlmanager.cpp | |
parent | cd28082c395002e027f682500670e79b934b9cf8 (diff) | |
download | subsurface-56771159a83d7791994bbf7f3cfed8c1459e2193.tar.gz |
QML UI: Show log correctly
Correctly show the log messages. The log window will display all
messages emitted by the QML Manager class.
Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index da91f96fe..dd038c6e2 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -56,6 +56,7 @@ void QMLManager::savePreferences() void QMLManager::loadDives() { showMessage("Loading dives..."); + appendTextToLog("Loading dives..."); QString url; if (getCloudURL(url)) { showMessage(get_error_string()); @@ -71,8 +72,10 @@ void QMLManager::loadDives() showMessage(get_error_string()); appendTextToLog(get_error_string()); set_filename(fileNamePrt.data(), true); + appendTextToLog(fileNamePrt.data()); } else { showMessage(get_error_string()); + appendTextToLog(get_error_string()); } process_dives(false, false); @@ -148,11 +151,13 @@ QString QMLManager::logText() const void QMLManager::setLogText(const QString &logText) { m_logText = logText; + emit logTextChanged(); } void QMLManager::appendTextToLog(const QString &newText) { m_logText += "\n" + newText; + emit logTextChanged(); } |