diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-11-06 11:14:27 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-11-12 11:42:35 +0000 |
commit | c0ac7a4c684e2fed60a72ceee53da89eea3f95a7 (patch) | |
tree | fb33cf3b8f7ce127c53637a34c566fdeb2452dc3 | |
parent | 61780a113f02b3c62fb14516fe8ea47d91f9ed9a (diff) |
Restrict more sensitive logging output
c7a94110 missed some output.
Change-Id: If2f1487dad2581f283800a13b8f791ccc7af1a59
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
(cherry picked from commit d6ca2af52b8ee363ae02f111cbc57ebb427754d8)
-rw-r--r-- | src/virtualkeyboard/inputengine.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/virtualkeyboard/inputengine.cpp b/src/virtualkeyboard/inputengine.cpp index f15eee26..975f33a6 100644 --- a/src/virtualkeyboard/inputengine.cpp +++ b/src/virtualkeyboard/inputengine.cpp @@ -206,7 +206,12 @@ InputEngine::~InputEngine() bool InputEngine::virtualKeyPress(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers, bool repeat) { Q_D(InputEngine); - VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyPress():" << key << text << modifiers << repeat; + VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyPress()" +#ifdef SENSITIVE_DEBUG + << key << text << modifiers << repeat +#endif + ; + bool accept = false; if (d->activeKey == Qt::Key_unknown || d->activeKey == key) { d->activeKey = key; @@ -273,7 +278,12 @@ void InputEngine::virtualKeyCancel() bool InputEngine::virtualKeyRelease(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers) { Q_D(InputEngine); - VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyRelease():" << key << text << modifiers; + VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyRelease()" +#ifdef SENSITIVE_DEBUG + << key << text << modifiers +#endif + ; + bool accept = false; if (d->activeKey == key) { if (!d->repeatCount) { @@ -313,7 +323,11 @@ bool InputEngine::virtualKeyRelease(Qt::Key key, const QString &text, Qt::Keyboa bool InputEngine::virtualKeyClick(Qt::Key key, const QString &text, Qt::KeyboardModifiers modifiers) { Q_D(InputEngine); - VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyClick():" << key << text << modifiers; + VIRTUALKEYBOARD_DEBUG() << "InputEngine::virtualKeyClick()" +#ifdef SENSITIVE_DEBUG + << key << text << modifiers +#endif + ; return d->virtualKeyClick(key, text, modifiers, false); } |