From 72302cac4902178e38489c2cc60f4897e9dbc5f1 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 24 Jun 2020 16:54:38 +0200 Subject: [PATCH] QmlDesigner: Remove old QtQuick 1 code Change-Id: I523419689ab7667900de6ca72aa736e14064ab34 Reviewed-by: Tim Jenssen --- src/plugins/qmldesigner/designercore/model/qmlstate.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()