diff options
author | Robert Loehning <robert.loehning@qt.io> | 2017-03-21 12:40:22 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2017-03-21 12:19:22 +0000 |
commit | 9a9f1f9cfe246dae7eb5d46e5d13585bc4dfe44c (patch) | |
tree | df66fd75e88b8199c4a58896ebd8f96fec859d7e /src/plugins/qmlprofiler | |
parent | 13643362541a17ec55c7bd63c91f539a3b4ee4b5 (diff) |
QmlProfiler: Add comments about deliberate fallthroughs
Change-Id: Ia9a7d62f8f3dbc753f2746f3f53f5557d9607d45
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r-- | src/plugins/qmlprofiler/inputeventsmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/inputeventsmodel.cpp b/src/plugins/qmlprofiler/inputeventsmodel.cpp index 0d1f91d2b8..0c7e9b50fc 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"); |