forked from qt-creator/qt-creator
QmlProfiler: Add comments about deliberate fallthroughs
Change-Id: Ia9a7d62f8f3dbc753f2746f3f53f5557d9607d45 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user