diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-07-15 22:52:46 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-07-15 22:52:46 +0200 |
commit | f7cabde3b757d606b4546080946ced207851bf0d (patch) | |
tree | 63489155e2889c508913d47958bdb14b416ab305 /src/webpage.h | |
parent | rekonq 0.1.8: closing to 0.2 release (diff) | |
download | rekonq-f7cabde3b757d606b4546080946ced207851bf0d.tar.xz |
Going back to simpler QtWebKit.
Seems more fast and stable, for now..
Diffstat (limited to 'src/webpage.h')
-rw-r--r-- | src/webpage.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/webpage.h b/src/webpage.h index c43212b6..1e25958c 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -37,7 +37,7 @@ class QWebFrame; class QNetworkReply; -class WebPage : public KWebPage +class WebPage : public QWebPage { Q_OBJECT @@ -48,11 +48,21 @@ public slots: void manageNetworkErrors(QNetworkReply* reply); protected: - KWebPage *createWindow(QWebPage::WebWindowType type); - + QWebPage *createWindow(QWebPage::WebWindowType type); + virtual WebPage *newWindow(WebWindowType type); + +// QString chooseFile(QWebFrame *frame, const QString &suggestedFile); + + void javaScriptAlert(QWebFrame *frame, const QString &msg); + bool javaScriptConfirm(QWebFrame *frame, const QString &msg); + bool javaScriptPrompt(QWebFrame *frame, const QString &msg, const QString &defaultValue, QString *result); + + QObject *createPlugin(const QString &classId, const QUrl &url, const QStringList ¶mNames, const QStringList ¶mValues); + protected Q_SLOTS: virtual void slotHandleUnsupportedContent(QNetworkReply *reply); - + virtual void slotDownloadRequested(const QNetworkRequest &request); + private: void viewErrorPage(QNetworkReply *); |