From 9a9f1f9cfe246dae7eb5d46e5d13585bc4dfe44c Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 21 Mar 2017 12:40:22 +0100 Subject: [PATCH] QmlProfiler: Add comments about deliberate fallthroughs Change-Id: Ia9a7d62f8f3dbc753f2746f3f53f5557d9607d45 Reviewed-by: Ulf Hermann --- src/plugins/qmlprofiler/inputeventsmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmlprofiler/inputeventsmodel.cpp b/src/plugins/qmlprofiler/inputeventsmodel.cpp index 0d1f91d2b80..0c7e9b50fc8 100644 --- a/src/plugins/qmlprofiler/inputeventsmodel.cpp +++ b/src/plugins/qmlprofiler/inputeventsmodel.cpp @@ -84,6 +84,7 @@ QVariantMap InputEventsModel::details(int index) const switch (event.type) { case InputKeyPress: type = tr("Key Press"); + // fallthrough case InputKeyRelease: if (type.isEmpty()) type = tr("Key Release"); @@ -97,9 +98,11 @@ QVariantMap InputEventsModel::details(int index) const break; case InputMouseDoubleClick: type = tr("Double Click"); + // fallthrough case InputMousePress: if (type.isEmpty()) type = tr("Mouse Press"); + // fallthrough case InputMouseRelease: if (type.isEmpty()) type = tr("Mouse Release");