From 9ca2eb6a61ea5307923cab67c789e1c0ba2086d5 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 9 Oct 2009 02:08:01 +0200 Subject: HUGE COMMIT 1) moved lionel preview implementation to tabbar class. This to simplify MainView management AND to use TabBar::tabSizeHint(). Now previews are of the same width of the tab :) 2) cleaned a bit TabBar code 3) fixed scrollButton bug, via a "rude" HACK: an hidden toolbutton shown when tabs are more than.. a number! 4) Changed tabbar::tabsizehint implementation using 2 stupid constants: BASE_WIDTH_DIVISOR and MIN_WIDTH_DIVISOR. Just play with them to modify tab dimension and resize quite all :) Good night, guys! --- src/mainview.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/mainview.h') diff --git a/src/mainview.h b/src/mainview.h index f8c94032..48e0b58b 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -47,8 +47,6 @@ class QMouseEvent; class TabBar; class UrlBar; -class KPassivePopup; - /** * This class represent rekonq Main View. It contains all WebViews and a stack widget @@ -91,9 +89,6 @@ public: */ WebView *newWebView(bool focused = true, bool nearParent = false); - virtual void mouseMoveEvent(QMouseEvent *event); - virtual void leaveEvent(QEvent *event); - void showTabPreview(int tab); signals: // tab widget signals @@ -139,11 +134,8 @@ private slots: void webViewUrlChanged(const QUrl &url); void windowCloseRequested(); - -protected: - - virtual void resizeEvent(QResizeEvent *event); + private: /** * This function creates (if not exists) and returns a QLabel @@ -163,9 +155,6 @@ private: QString m_loadingGitPath; int m_currentTabIndex; - - QPointer m_previewPopup; - int m_currentTabPreview; }; #endif // MAINVIEW_H -- cgit v1.2.1