From 47a26d10894d4c88d219dba8d04c0eae4ea48974 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 15 Sep 2009 17:14:14 +0200 Subject: Here we are, embedding Qt Widgets.. Now it's time to RUN working or I'll be dismissed!! This implementation works quite fine, it's a bit slow but really better than the previous one. It crashes gloriously loading flash contents (Qt bug? WebPlugin one's?) and does not resize well webviews.. --- src/webview.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/webview.h') diff --git a/src/webview.h b/src/webview.h index f1e5272c..16b199ff 100644 --- a/src/webview.h +++ b/src/webview.h @@ -45,6 +45,9 @@ class WebView : public QWebView public: explicit WebView(QWidget *parent = 0); + + // Q_DECLARE_METATYPE requires a copy-constructor + WebView(const WebView &); WebPage *page(); KUrl url() const; @@ -82,5 +85,6 @@ private: int m_progress; QString m_statusBarText; }; +Q_DECLARE_METATYPE(WebView) #endif -- cgit v1.2.1