diff --git a/src/plugins/qmldesigner/designercore/model/qmlstate.cpp b/src/plugins/qmldesigner/designercore/model/qmlstate.cpp index e23a87b3ef3..89bbec351eb 100644 --- a/src/plugins/qmldesigner/designercore/model/qmlstate.cpp +++ b/src/plugins/qmldesigner/designercore/model/qmlstate.cpp @@ -283,10 +283,7 @@ ModelNode QmlModelState::createQmlState(AbstractView *view, const PropertyListTy { QTC_CHECK(view->majorQtQuickVersion() < 3); - if (view->majorQtQuickVersion() > 1) - return view->createModelNode("QtQuick.State", 2, 0, propertyList); - else - return view->createModelNode("QtQuick.State", 1, 0, propertyList); + return view->createModelNode("QtQuick.State", 2, 0, propertyList); } void QmlModelState::setAsDefault()