summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-21 12:12:36 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-21 12:12:36 +0100
commit5a8bb470bc30bf6a360661a87af783fd30588f5f (patch)
treeceb8b0a5ed056c77ecc2ea00d7778cb2b19aa50c /src/tabbar.h
parentFixed tabs dimension && reduced tabbar font (diff)
downloadrekonq-5a8bb470bc30bf6a360661a87af783fd30588f5f.tar.xz
Always Show Tab Bar. Or not...
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h16
1 files changed, 14 insertions, 2 deletions
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 <QShortcut>
/**
- * 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<QShortcut*> 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