diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-05-28 13:39:18 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-07-14 09:35:56 +0200 |
commit | 7b4644b1e20e646c9220f43a5b6670367b2c2039 (patch) | |
tree | e9f88b4b42fb080b0cba52b40702f32397c9cea9 /src/client/qwaylandwindow.cpp | |
parent | c0d0b03a131783c076e316812e8d4c99b6ca9a51 (diff) | |
download | qtwayland-7b4644b1e20e646c9220f43a5b6670367b2c2039.tar.gz |
Improve categorized logging output
Change-Id: I8e4b48af21fe41bc76f83baa89e79a0e0fe8037c
Reviewed-by: Povilas Kanapickas <povilas@radix.lt>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r-- | src/client/qwaylandwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 2a0fdaf6..5ad4d754 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -985,7 +985,7 @@ void QWaylandWindow::handleSwipeGesture(QWaylandInputDevice *inputDevice, switch (e.state) { case Qt::GestureStarted: if (mGestureState != GestureNotActive) - qCWarning(lcQpaWaylandInput) << "Unexpected gesture state. Gestures will act weird."; + qCWarning(lcQpaWaylandInput) << "Unexpected GestureStarted while already active"; if (mWindowDecoration && !mMouseEventsInContentArea) { // whole gesture sequence will be ignored @@ -1018,7 +1018,7 @@ void QWaylandWindow::handleSwipeGesture(QWaylandInputDevice *inputDevice, } if (mGestureState != GestureActiveInContentArea) - qCWarning(lcQpaWaylandInput) << "Unexpected gesture state. Gestures will act weird."; + qCWarning(lcQpaWaylandInput) << "Unexpected" << (e.state == Qt::GestureFinished ? "GestureFinished" : "GestureCanceled"); mGestureState = GestureNotActive; @@ -1040,7 +1040,7 @@ void QWaylandWindow::handlePinchGesture(QWaylandInputDevice *inputDevice, switch (e.state) { case Qt::GestureStarted: if (mGestureState != GestureNotActive) - qCWarning(lcQpaWaylandInput) << "Unexpected gesture state. Gestures will act weird."; + qCWarning(lcQpaWaylandInput) << "Unexpected GestureStarted while already active"; if (mWindowDecoration && !mMouseEventsInContentArea) { // whole gesture sequence will be ignored @@ -1087,7 +1087,7 @@ void QWaylandWindow::handlePinchGesture(QWaylandInputDevice *inputDevice, } if (mGestureState != GestureActiveInContentArea) - qCWarning(lcQpaWaylandInput) << "Unexpected gesture state. Gestures will act weird."; + qCWarning(lcQpaWaylandInput) << "Unexpected" << (e.state == Qt::GestureFinished ? "GestureFinished" : "GestureCanceled"); mGestureState = GestureNotActive; |