summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-15 23:14:02 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-15 23:14:02 (GMT)
commitcffa023dab05c8add3cd7cd71220975086eacbda (patch)
tree69fd3171654202535ff0ab4d55b2ce72bb274961 /src/declarative/graphicsitems
parentcebb18bbffeb16a951dbe16dde2811284f359840 (diff)
downloadQt-cffa023dab05c8add3cd7cd71220975086eacbda.zip
Qt-cffa023dab05c8add3cd7cd71220975086eacbda.tar.gz
Qt-cffa023dab05c8add3cd7cd71220975086eacbda.tar.bz2
Ensure new WebView windows are notified correctly. Improve test.
Change 282a46ab5edafa7b82e9c58658143cb979db2d85 prevents itemChange() notification. That seems wrong, but this change is a work-around.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicswebview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicswebview.cpp b/src/declarative/graphicsitems/qmlgraphicswebview.cpp
index c71a366..533df2a 100644
--- a/src/declarative/graphicsitems/qmlgraphicswebview.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicswebview.cpp
@@ -1083,7 +1083,8 @@ QmlGraphicsWebView *QmlGraphicsWebView::createWindow(QWebPage::WebWindowType typ
if (!webview) {
delete item;
} else {
- item->setParent(d->newWindowParent);
+ nobj->setParent(d->newWindowParent);
+ static_cast<QGraphicsObject*>(item)->setParentItem(d->newWindowParent);
}
}
} else {