forked from qt-creator/qt-creator
Introduce Q_FALLTHROUGH()
Silence g++ 7.X warnings. Change-Id: I9d06d04b496c9ec060e13e1be6f43d8fbadb1f3b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <timeline/timelineformattime.h>
|
||||
|
||||
#include <utils/qtcfallthrough.h>
|
||||
|
||||
#include <QKeyEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QMetaEnum>
|
||||
@@ -84,7 +86,7 @@ QVariantMap InputEventsModel::details(int index) const
|
||||
switch (event.type) {
|
||||
case InputKeyPress:
|
||||
type = tr("Key Press");
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case InputKeyRelease:
|
||||
if (type.isEmpty())
|
||||
type = tr("Key Release");
|
||||
@@ -98,11 +100,11 @@ QVariantMap InputEventsModel::details(int index) const
|
||||
break;
|
||||
case InputMouseDoubleClick:
|
||||
type = tr("Double Click");
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case InputMousePress:
|
||||
if (type.isEmpty())
|
||||
type = tr("Mouse Press");
|
||||
// fallthrough
|
||||
Q_FALLTHROUGH();
|
||||
case InputMouseRelease:
|
||||
if (type.isEmpty())
|
||||
type = tr("Mouse Release");
|
||||
|
||||
Reference in New Issue
Block a user