diff options
Diffstat (limited to 'src/webview.h')
-rw-r--r-- | src/webview.h | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/src/webview.h b/src/webview.h index 0a46f1e5..11f04571 100644 --- a/src/webview.h +++ b/src/webview.h @@ -56,14 +56,14 @@ public: ~WebPage(); protected: - bool acceptNavigationRequest(QWebFrame *frame, - const QNetworkRequest &request, + bool acceptNavigationRequest(QWebFrame *frame, + const QNetworkRequest &request, NavigationType type); - + QWebPage *createWindow(QWebPage::WebWindowType type); - QObject *createPlugin(const QString &classId, - const QUrl &url, - const QStringList ¶mNames, + QObject *createPlugin(const QString &classId, + const QUrl &url, + const QStringList ¶mNames, const QStringList ¶mValues); private slots: @@ -92,14 +92,26 @@ class WebView : public QWebView public: WebView(QWidget *parent = 0); - + KActionCollection* webActions(); // inline - WebPage *webPage() const { return m_page; } - KUrl url() const { return KUrl(QWebView::url()); } - QString lastStatusBarText() const { return m_statusBarText; } - int progress() const { return m_progress; } + WebPage *webPage() const + { + return m_page; + } + KUrl url() const + { + return KUrl(QWebView::url()); + } + QString lastStatusBarText() const + { + return m_statusBarText; + } + int progress() const + { + return m_progress; + } signals: // switching tabs @@ -119,17 +131,23 @@ protected: void keyPressEvent(QKeyEvent *event); private slots: - void setProgress(int progress) { m_progress = progress; } + void setProgress(int progress) + { + m_progress = progress; + } void loadFinished(); - void setStatusBarText(const QString &string) { m_statusBarText = string; } + void setStatusBarText(const QString &string) + { + m_statusBarText = string; + } void downloadRequested(const QNetworkRequest &request); void openLinkInNewTab(); private: static KActionCollection* s_webActionCollection; - + WebPage *m_page; - + int m_progress; QString m_statusBarText; }; |