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/mainview.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/mainview.h') diff --git a/src/mainview.h b/src/mainview.h index 05a9bb16..94b93c37 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -22,11 +22,9 @@ #ifndef TABWIDGET_H #define TABWIDGET_H - // KDE Includes #include - // Forward Declarations class WebView; class TabBar; @@ -41,12 +39,15 @@ class QStackedWidget; class QLineEdit; class QUrl; + /** * TabWidget that contains WebViews and a stack widget of associated line edits. * * Connects up the current tab's signals to this class's signal and uses WebActionMapper * to proxy the actions. + * */ + class MainView : public KTabWidget { Q_OBJECT @@ -126,6 +127,14 @@ private slots: void moveTab(int fromIndex, int toIndex); private: + + /** + * show and hide TabBar if user doesn't choose + * "Always Show TabBar" option + * + */ + void viewTabBar(); + KAction *m_recentlyClosedTabsAction; KMenu *m_recentlyClosedTabsMenu; @@ -137,5 +146,5 @@ private: TabBar *m_tabBar; }; -#endif // TABWIDGET_H +#endif -- cgit v1.2.1