diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-19 12:30:55 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-21 15:24:00 (GMT) |
commit | 3c215a1644adcca32cfc451456b6891f9c8519fd (patch) | |
tree | 1ac04d3ea1efc7ccc539420a1dfa20febdf2515e /src/gui/embedded/qwslock.cpp | |
parent | b5754f5bd28ed01979e94983ae0480e913649d30 (diff) | |
download | Qt-3c215a1644adcca32cfc451456b6891f9c8519fd.zip Qt-3c215a1644adcca32cfc451456b6891f9c8519fd.tar.gz Qt-3c215a1644adcca32cfc451456b6891f9c8519fd.tar.bz2 |
Only send QGraphicsItem::ParentChange(d) notifications from setParentItem.
QmlGraphicsItem doesn't need any parent change notifactions so we can
call the helper class (QGraphicsItemPrivate::setParentItemHelper)
direclty from QmlGraphicsItem::setParentItem. This avoids a lot of unnecessary
instructions related to QVariant constructions as well as virtual
function calls.
I've made the variant pointers explicit in the declaration of
setParentItemHelper so that we don't accidentally call setParentItemHelper
from places where we need parent change notifications.
Task-number: QTBUG-6877
Reviewed-by: alexis
Diffstat (limited to 'src/gui/embedded/qwslock.cpp')
0 files changed, 0 insertions, 0 deletions