From 5a8bb470bc30bf6a360661a87af783fd30588f5f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 21 Mar 2009 12:12:36 +0100 Subject: Always Show Tab Bar. Or not... --- src/tabbar.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index 8b670def..7cdc9afd 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -30,8 +30,11 @@ #include /** - * Tab bar with a few more features such as a context menu and shortcuts + * Tab bar with a few more features such as + * a context menu and shortcuts + * */ + class TabBar : public KTabBar { Q_OBJECT @@ -56,6 +59,10 @@ protected: void dragEnterEvent(QDragEnterEvent *event); void dropEvent(QDropEvent *event); + /** + * Added to fix tab dimension + * + */ virtual QSize tabSizeHint (int index) const; private slots: @@ -67,13 +74,18 @@ private slots: void contextMenuRequested(const QPoint &position); private: + QList m_tabShortcuts; friend class MainView; QWidget *m_parent; QPoint m_dragStartPos; int m_dragCurrentIndex; - int m_actualIndex; // the index in which we are seeing a Context menu + + /** + * the index in which we are seeing a Context menu + */ + int m_actualIndex; }; #endif -- cgit v1.2.1