forked from qt-creator/qt-creator
ScxmlEditor: silent fallthrough warnings
Change-Id: I7bd7140f05e8342a2e10713eb1646e0bd3f028ff Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user