summaryrefslogtreecommitdiff
path: root/src/mainview.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-20 02:12:20 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-20 02:12:20 +0200
commitba286469e4965ec2cf74a934c3276a974e4aa86b (patch)
treebc5210b6b761ca05c72697182327b2ca647b9415 /src/mainview.h
parentFixing websnap resizing... (diff)
parentShow a preview when mouse is over a tab (diff)
downloadrekonq-ba286469e4965ec2cf74a934c3276a974e4aa86b.tar.xz
Merge commit 'refs/merge-requests/1549' of git://gitorious.org/rekonq/mainline into int
Diffstat (limited to 'src/mainview.h')
-rw-r--r--src/mainview.h12
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