Commit c6431bb2 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Remove qDebugs

parent 468ad536
......@@ -104,16 +104,11 @@ QDeclarativeStateGroup *QmlStateNodeInstance::stateGroup() const
bool QmlStateNodeInstance::isStateActive() const
{
qDebug() << stateObject();
qDebug() << stateGroup();
if (stateGroup())
qDebug() << "state name" << stateGroup()->state() << property("name");
return stateObject() && stateGroup() && stateGroup()->state() == property("name");
}
void QmlStateNodeInstance::setPropertyVariant(const QString &name, const QVariant &value)
{
qDebug() << __FUNCTION__ << stateObject() << name << value;
bool hasParent = parent();
bool isStateOfTheRootModelNode = parentInstance() && parentInstance()->isRootNodeInstance();
if (name == "when" && (!hasParent || isStateOfTheRootModelNode))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment