diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-11-12 16:05:41 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-11-13 09:31:56 +0000 |
commit | 01fc537adc74d5e102c8cc93384cdf5cb08b4442 (patch) | |
tree | c272cdac166b9144a5614aa9551b0c6dbea877cb | |
parent | c02115db1de1f3aba81e109043766d600f886522 (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 31a61561..e1ad9a28 100644 --- a/src/virtualkeyboard/inputengine.cpp +++ b/src/virtualkeyboard/inputengine.cpp @@ -195,7 +195,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; @@ -262,7 +267,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) { @@ -302,7 +312,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); } |