aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas@jolla.com>2018-02-21 11:27:34 +0100
committerSvetlana Abramenkova <sabramenkova@luxoft.com>2018-06-07 13:10:09 +0000
commit3e8e1de30c09fda84a66c31df1ac28ee33689ad1 (patch)
treecb851b4cd24c4b9877fdb45f8c4e6a38537a8910
parent71a415c66ea1b5280705da46ebbf9f6ebe0c8aa4 (diff)
HostModel: Fix unintended fallthrough
Change-Id: I59c6a9becd25f1043d567dc48445f016161243cc Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
-rw-r--r--src/bench/hostmodel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bench/hostmodel.cpp b/src/bench/hostmodel.cpp
index 98c102e..2d9418d 100644
--- a/src/bench/hostmodel.cpp
+++ b/src/bench/hostmodel.cpp
@@ -84,11 +84,11 @@ QVariant HostModel::headerData(int section, Qt::Orientation orientation, int rol
return QVariant();
switch (section) {
- case 0: if (role == Qt::DisplayRole) return QVariant();
- case 1: if (role == Qt::DisplayRole) return QString("Name");
- case 2: if (role == Qt::DisplayRole) return QString("Version");
- case 3: if (role == Qt::DisplayRole) return QString("System");
- case 4: if (role == Qt::DisplayRole) return QString("Ip");
+ case 0: if (role == Qt::DisplayRole) return QVariant(); break;
+ case 1: if (role == Qt::DisplayRole) return QString("Name"); break;
+ case 2: if (role == Qt::DisplayRole) return QString("Version"); break;
+ case 3: if (role == Qt::DisplayRole) return QString("System"); break;
+ case 4: if (role == Qt::DisplayRole) return QString("Ip"); break;
}
return QVariant();