diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-05 23:22:19 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 13:55:41 -0700 |
commit | 3b993fbaad0738efe54e797b60e4f49270951323 (patch) | |
tree | c6192129119c37f51aac9481d40f059475e0defa /mobile-widgets/qmlmanager.cpp | |
parent | 2d8489158da2e049a89734d2a95434ffec005fee (diff) | |
download | subsurface-3b993fbaad0738efe54e797b60e4f49270951323.tar.gz |
QML UI: adjust to modified logging API
appendTextToLog prepends the elapsed time which can be useful, so let's
not remove that but instead have it log to qDebug() instead.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 0332a218e..856dec03b 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -120,8 +120,6 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), m_instance = this; m_lastDevicePixelRatio = qApp->devicePixelRatio(); connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged); - appendTextToLog(getUserAgent()); - appendTextToLog(QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion())); qDebug() << "Starting" << getUserAgent(); qDebug() << QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()); setStartPageText(tr("Starting...")); @@ -1270,8 +1268,7 @@ void QMLManager::appendTextToLog(const QString &newText) { if (!timer.isValid()) timer.start(); - m_logText += "\n" + QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText; - emit logTextChanged(); + qDebug() << QString::number(timer.elapsed() / 1000.0,'f', 3) + ": " + newText; } bool QMLManager::locationServiceEnabled() const |