summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-23 23:23:51 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-23 23:23:51 +0100
commitade414e7ec17d267ba2382fadd6be2ed9ea89a45 (patch)
tree465388204a3fdf507df263f3c58e8d67e58be637 /src/webview.h
parentBe sure you need to resolv url... (diff)
downloadrekonq-ade414e7ec17d267ba2382fadd6be2ed9ea89a45.tar.xz
Here we are, with this commit I removed a lot of direct calls to
Application::loadUrl slot and changed it to signals emitted there. This to let rekonq managing them and faster return to the main event loop (and hopefully don't freeze). Next step here is change loadUrl slot to a multithreaded one.
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h
index d34d108b..263b2ec4 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -28,12 +28,16 @@
#ifndef WEBVIEW_H
#define WEBVIEW_H
+// Local Includes
+#include "application.h"
+
// KDE Includes
#include <KWebView>
// Forward Declarations
class WebPage;
+
class WebView : public KWebView
{
Q_OBJECT
@@ -56,11 +60,16 @@ private slots:
void printFrame();
+ void loadUrlInNewTab(const KUrl &);
void openLinkInNewWindow();
void openLinkInNewTab();
+
void viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers);
void inspect();
+signals:
+ void loadUrl(const KUrl &, const Rekonq::OpenType &);
+
private:
WebPage *const m_page;
QPoint m_mousePos;