forked from qt-creator/qt-creator
QmlDesigner: Remove old QtQuick 1 code
Change-Id: I523419689ab7667900de6ca72aa736e14064ab34 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
6dda9d360d
commit
72302cac49
@@ -283,10 +283,7 @@ ModelNode QmlModelState::createQmlState(AbstractView *view, const PropertyListTy
|
|||||||
{
|
{
|
||||||
QTC_CHECK(view->majorQtQuickVersion() < 3);
|
QTC_CHECK(view->majorQtQuickVersion() < 3);
|
||||||
|
|
||||||
if (view->majorQtQuickVersion() > 1)
|
return view->createModelNode("QtQuick.State", 2, 0, propertyList);
|
||||||
return view->createModelNode("QtQuick.State", 2, 0, propertyList);
|
|
||||||
else
|
|
||||||
return view->createModelNode("QtQuick.State", 1, 0, propertyList);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlModelState::setAsDefault()
|
void QmlModelState::setAsDefault()
|
||||||
|
Reference in New Issue
Block a user