summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 3754444b..b8662f14 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -65,8 +65,6 @@
#include <QtGui/QClipboard>
#include <QtGui/QKeyEvent>
-#include <QtUiTools/QUiLoader>
-
WebPage::WebPage(QObject *parent)
: QWebPage(parent)
@@ -264,39 +262,6 @@ QString WebPage::errorPage(QNetworkReply *reply)
}
-void WebPage::javaScriptAlert(QWebFrame *frame, const QString &msg)
-{
- KMessageBox::error(frame->page()->view(), msg, i18n("JavaScript"));
-}
-
-
-bool WebPage::javaScriptConfirm(QWebFrame *frame, const QString &msg)
-{
- return (KMessageBox::warningYesNo(frame->page()->view(), msg, i18n("JavaScript"), KStandardGuiItem::ok(), KStandardGuiItem::cancel())
- == KMessageBox::Yes);
-}
-
-
-bool WebPage::javaScriptPrompt(QWebFrame *frame, const QString &msg, const QString &defaultValue, QString *result)
-{
- bool ok = false;
- *result = KInputDialog::getText(i18n("JavaScript"), msg, defaultValue, &ok, frame->page()->view());
- return ok;
-}
-
-
-QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QStringList &paramNames, const QStringList &paramValues)
-{
- kDebug() << "create Plugin requested:";
- kDebug() << "classid:" << classId;
- kDebug() << "url:" << url;
- kDebug() << "paramNames:" << paramNames << " paramValues:" << paramValues;
-
- QUiLoader loader;
- return loader.createWidget(classId, view());
-}
-
-
// TODO FIXME: sometimes url.fileName() fails to retrieve url file name
void WebPage::slotDownloadRequested(const QNetworkRequest &request)
{