From 408b3bf12b5b3fbe388850fe7b567f7b9f3de339 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Oct 24 2018 21:41:02 +0000 Subject: do not log keypresses in release mode --- diff --git a/qt5-qtvirtualkeyboard.spec b/qt5-qtvirtualkeyboard.spec index 4512806..15fcb1c 100644 --- a/qt5-qtvirtualkeyboard.spec +++ b/qt5-qtvirtualkeyboard.spec @@ -3,7 +3,7 @@ Summary: Qt5 - VirtualKeyboard component Name: qt5-%{qt_module} Version: 5.11.2 -Release: 1%{?dist} +Release: 2%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -11,6 +11,10 @@ Url: http://qt.io %global majmin %(echo %{version} | cut -d. -f1-2) Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz +## upstreamable patches +# do not log keypresses in release mode +Patch100: qtvirtualkeyboard-everywhere-src-5.11.2-qDebug.patch + BuildRequires: qt5-qtbase-devel >= %{version} BuildRequires: qt5-qtbase-private-devel %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} @@ -46,7 +50,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %prep -%setup -q -n %{qt_module}-everywhere-src-%{version} +%autosetup -n %{qt_module}-everywhere-src-%{version} -p1 %build @@ -74,6 +78,9 @@ make install INSTALL_ROOT=%{buildroot} %changelog +* Wed Oct 24 2018 Rex Dieter - 5.11.2-2 +- do not log keypresses in release mode + * Fri Sep 21 2018 Jan Grulich - 5.11.2-1 - 5.11.2 diff --git a/qtvirtualkeyboard-everywhere-src-5.11.2-qDebug.patch b/qtvirtualkeyboard-everywhere-src-5.11.2-qDebug.patch new file mode 100644 index 0000000..e79a2a8 --- /dev/null +++ b/qtvirtualkeyboard-everywhere-src-5.11.2-qDebug.patch @@ -0,0 +1,12 @@ +diff -up qtvirtualkeyboard-everywhere-src-5.11.2/src/virtualkeyboard/inputcontext.cpp.qDebug qtvirtualkeyboard-everywhere-src-5.11.2/src/virtualkeyboard/inputcontext.cpp +--- qtvirtualkeyboard-everywhere-src-5.11.2/src/virtualkeyboard/inputcontext.cpp.qDebug 2018-08-28 23:53:34.000000000 -0500 ++++ qtvirtualkeyboard-everywhere-src-5.11.2/src/virtualkeyboard/inputcontext.cpp 2018-10-24 16:39:15.789269431 -0500 +@@ -452,7 +452,7 @@ void InputContext::sendKeyClick(int key, + if (d->activeKeys.isEmpty()) + d->stateFlags &= ~InputContextPrivate::KeyEventState; + } else { +- qWarning() << "InputContext::sendKeyClick(): no focus to send key click" << key << text ++ qDebug() << "InputContext::sendKeyClick(): no focus to send key click" << key << text + << "- QGuiApplication::focusWindow() is:" << QGuiApplication::focusWindow(); + } + }