diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-29 02:38:49 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-29 02:38:49 +0100 |
commit | 2acd9aea1e6d5a75c2c58a58181ef421576db8a6 (patch) | |
tree | 653b82e0d2809ac2f4a9dbcdda25913e670f742b /src/webpage.cpp | |
parent | rekonq 0.2.90 (diff) | |
download | rekonq-2acd9aea1e6d5a75c2c58a58181ef421576db8a6.tar.xz |
icefox hints on webpage usage.. :D
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 35 |
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 ¶mNames, const QStringList ¶mValues) -{ - 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) { |