diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-15 23:14:02 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-15 23:14:02 (GMT) |
commit | cffa023dab05c8add3cd7cd71220975086eacbda (patch) | |
tree | 69fd3171654202535ff0ab4d55b2ce72bb274961 /src/declarative/graphicsitems | |
parent | cebb18bbffeb16a951dbe16dde2811284f359840 (diff) | |
download | Qt-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.cpp | 3 |
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 { |