forked from qt-creator/qt-creator
DefaultAnnotationsModel: Add missing break
Change-Id: Ic8545a2f57cd969c48b29023d35c11cf484a31e4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -157,11 +157,13 @@ QVariantMap DefaultAnnotationsModel::asVariantMapFromJson(const QJsonDocument &d
|
||||
map[key] = QVariant::fromValue(val.toDouble());
|
||||
else if (type == QStringLiteral("color"))
|
||||
map[key] = QVariant::fromValue(QColor(val.toString()));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
case QJsonValue::String:
|
||||
map[key] = QString{};
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user