summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicsloader.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-12 05:29:21 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-12 05:29:21 (GMT)
commit62d585e8ec6c09406fa28f9edf29b56b2d67c739 (patch)
tree0662e137af421a61c94dc79deee3eba6f495ee47 /src/declarative/graphicsitems/qmlgraphicsloader.cpp
parent9e85baac1842a39d24afd75cf44cf084ab614e8a (diff)
parentf468cb54e4b9a7f19377ca1e07c313beb71e1025 (diff)
downloadQt-62d585e8ec6c09406fa28f9edf29b56b2d67c739.zip
Qt-62d585e8ec6c09406fa28f9edf29b56b2d67c739.tar.gz
Qt-62d585e8ec6c09406fa28f9edf29b56b2d67c739.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicsloader.cpp')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsloader.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsloader.cpp b/src/declarative/graphicsitems/qmlgraphicsloader.cpp
index d0b804b..b3486ef 100644
--- a/src/declarative/graphicsitems/qmlgraphicsloader.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsloader.cpp
@@ -93,7 +93,6 @@ void QmlGraphicsLoaderPrivate::clear()
void QmlGraphicsLoaderPrivate::initResize()
{
Q_Q(QmlGraphicsLoader);
- QmlGraphicsItem *resizeItem = 0;
if (QmlGraphicsItem *qmlItem = qobject_cast<QmlGraphicsItem*>(item)) {
if (resizeMode == QmlGraphicsLoader::SizeLoaderToItem) {
QmlGraphicsItemPrivate *p =
@@ -389,7 +388,6 @@ void QmlGraphicsLoader::setResizeMode(ResizeMode mode)
if (mode == d->resizeMode)
return;
- QmlGraphicsItem *resizeItem = 0;
if (QmlGraphicsItem *qmlItem = qobject_cast<QmlGraphicsItem*>(d->item)) {
if (d->resizeMode == SizeLoaderToItem) {
QmlGraphicsItemPrivate *p =
@@ -397,7 +395,6 @@ void QmlGraphicsLoader::setResizeMode(ResizeMode mode)
p->removeItemChangeListener(d, QmlGraphicsItemPrivate::Geometry);
}
} else if (d->item && d->item->isWidget()) {
- QGraphicsWidget *widget = static_cast<QGraphicsWidget*>(d->item);
if (d->resizeMode == SizeLoaderToItem)
d->item->removeEventFilter(this);
}