summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-02-14 12:06:54 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-02-14 12:06:54 +0100
commit8213829a830cabc2d9b44a43bba00f1dae77adc5 (patch)
tree37250068a8eaae93761ee810f4f76ebab55f4dff /src/webview.cpp
parentUpdating (diff)
downloadrekonq-8213829a830cabc2d9b44a43bba00f1dae77adc5.tar.xz
Preliminary flash support
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index a4ca8211..5d317597 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -42,7 +42,8 @@
#include <QMouseEvent>
#include <QWebHitTestResult>
#include <QBuffer>
-
+// ---
+#include <QUiLoader>
WebPage::WebPage(QObject *parent)
: QWebPage(parent)
@@ -120,6 +121,16 @@ QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
}
+QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QStringList &paramNames, const QStringList &paramValues)
+{
+ Q_UNUSED(url);
+ Q_UNUSED(paramNames);
+ Q_UNUSED(paramValues);
+ QUiLoader loader;
+ return loader.createWidget(classId, view());
+}
+
+
void WebPage::handleUnsupportedContent(QNetworkReply *reply)
{
if (reply->error() == QNetworkReply::NoError)