diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:24:11 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:24:11 +0200 |
commit | 82862fbd150afae0101757d1d6081e0e6ddf7baa (patch) | |
tree | c864003f3580d4eae365e3757c7a826ae3f6bfe7 /src/webview.h | |
parent | Forgot to add it... ;) (diff) | |
download | rekonq-82862fbd150afae0101757d1d6081e0e6ddf7baa.tar.xz |
astyle
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; }; |