diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-09-19 21:20:28 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-09-19 21:20:28 +0200 |
commit | 87243819be1b5d3ffa6997d97beea48e86b2b39d (patch) | |
tree | 4b38038f21b01426a42f84946cb50dc64a0404f3 /src/mainview.h | |
parent | rekonq 0.2.58 with the new homepage! (diff) | |
download | rekonq-87243819be1b5d3ffa6997d97beea48e86b2b39d.tar.xz |
Show a preview when mouse is over a tab
Diffstat (limited to 'src/mainview.h')
-rw-r--r-- | src/mainview.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mainview.h b/src/mainview.h index 297871b0..cd212dbd 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -43,10 +43,12 @@ class QUrl; class QWebFrame; class QLabel; +class QMouseEvent; class TabBar; class UrlBar; +class KPassivePopup; /** * This class represent rekonq Main View. It contains all WebViews and a stack widget @@ -90,7 +92,12 @@ public: * @return the webview embedded in the new tab */ WebView *newWebView(bool focused = true, bool nearParent = false); - + + virtual void mouseMoveEvent(QMouseEvent *event); + virtual void leaveEvent(QEvent *event); + void showTabPreview(int tab); + QPixmap renderTabPreview(int tab, int w, int h); + signals: // tab widget signals void tabsChanged(); @@ -162,6 +169,9 @@ private: int m_currentTabIndex; KUrl::List m_recentlyClosedTabs; + + QPointer<KPassivePopup> m_previewPopup; + int m_currentTabPreview; }; #endif // MAINVIEW_H |