diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2018-11-14 11:17:02 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2018-11-28 09:41:52 +0000 |
commit | de97ea192a46eecc79198f99e691f5816a01f3d9 (patch) | |
tree | fa991a9095fdc1bfb625d6233e15af9328b4bb09 | |
parent | c1d1f0e50b6145b4f31e58e0abbdf463a22a96d3 (diff) |
plugins/openwnn: Add missing log prints
OpenWnn ComposingText::debugout() function was missing log prints.
Change-Id: I2d452e4db08ec97d3986a25e9d002bdb18fef82d
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/plugins/openwnn/3rdparty/openwnn/wnnEngine/composingtext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/openwnn/3rdparty/openwnn/wnnEngine/composingtext.cpp b/src/plugins/openwnn/3rdparty/openwnn/wnnEngine/composingtext.cpp index 1f9ca4ff..f891ff6c 100644 --- a/src/plugins/openwnn/3rdparty/openwnn/wnnEngine/composingtext.cpp +++ b/src/plugins/openwnn/3rdparty/openwnn/wnnEngine/composingtext.cpp @@ -22,6 +22,9 @@ #include "composingtext.h" #include <QtCore/private/qobject_p.h> +#include <QLoggingCategory> + +Q_LOGGING_CATEGORY(lcOpenWnn, "qt.virtualkeyboard.openwnn") class ComposingTextPrivate : public QObjectPrivate { @@ -207,11 +210,14 @@ void ComposingText::debugout() const { Q_D(const ComposingText); for (int i = LAYER0; i < MAX_LAYER; i++) { + qCDebug(lcOpenWnn).noquote() << QStringLiteral("ComposingText[%1]").arg(i); + qCDebug(lcOpenWnn) << " cur =" << d->mCursor[i]; QString tmp; for (QList<StrSegment>::ConstIterator it = d->mStringLayer[i].constBegin(); it != d->mStringLayer[i].constEnd(); it++) { tmp += QStringLiteral("(%1,%2,%3)").arg(it->string).arg(it->from).arg(it->to); } + qCDebug(lcOpenWnn).noquote() << " str =" << tmp; } } |