diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-08-25 23:17:04 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-08-25 23:17:04 (GMT) |
commit | 94a4d1918d5fe0d6d094b3f3cbc9e763a50bb19f (patch) | |
tree | 058b8557aea06923903555052e85ec14dc448a26 | |
parent | 48e8644b148fbd6942a44e7492ba9fd7cde703c1 (diff) | |
download | Qt-94a4d1918d5fe0d6d094b3f3cbc9e763a50bb19f.zip Qt-94a4d1918d5fe0d6d094b3f3cbc9e763a50bb19f.tar.gz Qt-94a4d1918d5fe0d6d094b3f3cbc9e763a50bb19f.tar.bz2 |
Avoid shadowing QWebPage::view().
-rw-r--r-- | src/declarative/fx/qfxwebview.cpp | 6 | ||||
-rw-r--r-- | src/declarative/fx/qfxwebview.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp index 347c9c2..5e3ce29 100644 --- a/src/declarative/fx/qfxwebview.cpp +++ b/src/declarative/fx/qfxwebview.cpp @@ -1174,15 +1174,15 @@ private: QFxWebView *webview; }; -QFxWebView *QFxWebPage::view() +QFxWebView *QFxWebPage::viewItem() { return static_cast<QFxWebView*>(parent()); } QObject *QFxWebPage::createPlugin(const QString &, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues) { - QUrl comp = qmlContext(view())->resolvedUrl(url); - return new QWidget_Dummy_Plugin(comp,view(),paramNames,paramValues); + QUrl comp = qmlContext(viewItem())->resolvedUrl(url); + return new QWidget_Dummy_Plugin(comp,viewItem(),paramNames,paramValues); } QT_END_NAMESPACE diff --git a/src/declarative/fx/qfxwebview.h b/src/declarative/fx/qfxwebview.h index 40c86b4..d7c9fd0 100644 --- a/src/declarative/fx/qfxwebview.h +++ b/src/declarative/fx/qfxwebview.h @@ -70,7 +70,7 @@ public: protected: QObject *createPlugin(const QString &classid, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues); private: - QFxWebView *view(); + QFxWebView *viewItem(); }; |