diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index a635adb7..374a06a8 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -80,12 +80,48 @@ WebView::WebView(QWidget* parent) } +WebPage *WebView::webPage() const +{ + return m_page; +} + + +KUrl WebView::url() const +{ + return KUrl(QWebView::url()); +} + + +QString WebView::lastStatusBarText() const +{ + return m_statusBarText; +} + + +int WebView::progress() const +{ + return m_progress; +} + + void WebView::load(const KUrl &url) { QWebView::load(url); } +void WebView::setProgress(int progress) +{ + m_progress = progress; +} + + +void WebView::setStatusBarText(const QString &string) +{ + m_statusBarText = string; +} + + void WebView::contextMenuEvent(QContextMenuEvent *event) { QWebHitTestResult result = page()->mainFrame()->hitTestContent(event->pos()); |