ScxmlEditor: silent fallthrough warnings

Change-Id: I7bd7140f05e8342a2e10713eb1646e0bd3f028ff
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Nikita Baryshnikov
2017-08-21 11:55:18 +03:00
parent 66423bcb3e
commit bf46cf8eaf
4 changed files with 9 additions and 2 deletions

View File

@@ -26,6 +26,8 @@
#include "scattributeitemmodel.h"
#include "mytypes.h"
#include <utils/qtcfallthrough.h>
#include <QBrush>
using namespace ScxmlEditor::PluginInterface;
@@ -91,6 +93,7 @@ QVariant SCAttributeItemModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole:
if (bExtraRow)
return index.column() == 0 ? tr("- name -") : tr(" - value -");
Q_FALLTHROUGH();
case Qt::EditRole: {
if (index.column() == 0) {
if (bEditable) {