diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-08-07 03:24:28 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-08-07 03:24:28 (GMT) |
commit | d6843baff3f344de4c63c5559d23595dbf2bdfea (patch) | |
tree | 7fb53e8980c988849f9c606c5521f012e4711441 | |
parent | fe1165f3647c437528d9df437b939278f23260fc (diff) | |
download | Qt-d6843baff3f344de4c63c5559d23595dbf2bdfea.zip Qt-d6843baff3f344de4c63c5559d23595dbf2bdfea.tar.gz Qt-d6843baff3f344de4c63c5559d23595dbf2bdfea.tar.bz2 |
Optimization: Use setparent_noevent.
-rw-r--r-- | src/declarative/util/qmlstategroup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp index 3a07fbe..bb40a8b 100644 --- a/src/declarative/util/qmlstategroup.cpp +++ b/src/declarative/util/qmlstategroup.cpp @@ -274,7 +274,7 @@ void QmlStateGroupPrivate::setCurrentStateInternal(const QString &state, } if (oldState == 0 || newState == 0) { - if (!nullState) { nullState = new QmlState(q); } + if (!nullState) { nullState = new QmlState; QFx_setParent_noEvent(nullState, q); } if (!oldState) oldState = nullState; if (!newState) newState = nullState; } |