diff options
Diffstat (limited to 'src/imports/statemachine/childrenprivate.h')
-rw-r--r-- | src/imports/statemachine/childrenprivate.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/imports/statemachine/childrenprivate.h b/src/imports/statemachine/childrenprivate.h index 5e2d60e299..d66454ca1c 100644 --- a/src/imports/statemachine/childrenprivate.h +++ b/src/imports/statemachine/childrenprivate.h @@ -51,9 +51,6 @@ public: { QAbstractState *state = qobject_cast<QAbstractState*>(item); if (state) { - if (qobject_cast<QStateMachine*>(item)) - qmlInfo(static_cast<T *>(prop->object)) << "StateMachines should not be nested."; - item->setParent(prop->object); } else { QAbstractTransition *trans = qobject_cast<QAbstractTransition*>(item); @@ -68,9 +65,6 @@ public: { QAbstractState *state = qobject_cast<QAbstractState*>(item); if (state) { - if (qobject_cast<QStateMachine*>(item)) - qmlInfo(static_cast<T *>(prop->object)) << "StateMachines should not be nested."; - item->setParent(prop->object); } static_cast<ChildrenPrivate<T>*>(prop->data)->children.append(item); |