do not log keypresses in release mode

epel9
Rex Dieter 6 years ago
parent dcc9ae7078
commit 408b3bf12b

@ -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 <rdieter@fedoraproject.org> - 5.11.2-2
- do not log keypresses in release mode
* Fri Sep 21 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.2-1
- 5.11.2

@ -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();
}
}
Loading…
Cancel
Save