diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-09 02:08:01 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-09 02:08:01 +0200 |
commit | 9ca2eb6a61ea5307923cab67c789e1c0ba2086d5 (patch) | |
tree | c9e79ffcd2c0e2a777bdd883757cfba8af5586b4 /src/mainview.h | |
parent | - Some things in the right position (diff) | |
download | rekonq-9ca2eb6a61ea5307923cab67c789e1c0ba2086d5.tar.xz |
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!
Diffstat (limited to 'src/mainview.h')
-rw-r--r-- | src/mainview.h | 13 |
1 files changed, 1 insertions, 12 deletions
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<KPassivePopup> m_previewPopup; - int m_currentTabPreview; }; #endif // MAINVIEW_H |