From 54781edbaabc563f1fb6e4f14edc35e675009ac7 Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@qt.io>
Date: Wed, 4 May 2016 09:32:30 +0200
Subject: [PATCH] Manual touch test: Add color for
 Qt::MouseEventSynthesizedByApplication.

Fix a warning about a missing case statement.

Change-Id: Ic89646704d62668cf83c463dbf6e9b549a4b5200
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
---
 tests/manual/touch/main.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/manual/touch/main.cpp b/tests/manual/touch/main.cpp
index 2a5c2b508ed..6fa81413614 100644
--- a/tests/manual/touch/main.cpp
+++ b/tests/manual/touch/main.cpp
@@ -261,6 +261,9 @@ QColor Point::color() const
         case Qt::MouseEventSynthesizedByQt:
             globalColor = Qt::blue;
             break;
+        case Qt::MouseEventSynthesizedByApplication:
+            globalColor = Qt::green;
+            break;
         case Qt::MouseEventNotSynthesized:
             break;
         }
-- 
GitLab