QmlDesigner: Remove old QtQuick 1 code

Change-Id: I523419689ab7667900de6ca72aa736e14064ab34
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2020-06-24 16:54:38 +02:00
committed by Tim Jenssen
parent 6dda9d360d
commit 72302cac49

View File

@@ -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()