diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-23 23:23:51 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-23 23:23:51 +0100 |
commit | ade414e7ec17d267ba2382fadd6be2ed9ea89a45 (patch) | |
tree | 465388204a3fdf507df263f3c58e8d67e58be637 /src/webview.h | |
parent | Be sure you need to resolv url... (diff) | |
download | rekonq-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.h | 9 |
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; |