summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-12-24 13:33:47 +0100
committermegabigbug <megabigbug@arrakis.(none)>2009-12-24 13:33:47 +0100
commit67682752881f2611f70989127e38a03a0a582b02 (patch)
treed7781f2f7b8e64756288c5f66e8baad84f7d620e /src/mainview.cpp
parentrekonq 0.3.26 (diff)
downloadrekonq-67682752881f2611f70989127e38a03a0a582b02.tar.xz
hide tabbar in fulscreen mode
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 46cd9a15..fb6f202d 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -186,12 +186,15 @@ void MainView::updateTabBar()
{
if (ReKonfig::alwaysShowTabBar())
{
- if (m_tabBar->isHidden())
+ if (!isTabBarHidden())
{
- m_tabBar->show();
- m_addTabButton->show();
+ if (m_tabBar->isHidden())
+ {
+ m_tabBar->show();
+ m_addTabButton->show();
+ }
+ updateTabButtonPosition();
}
- updateTabButtonPosition();
return;
}
@@ -200,7 +203,7 @@ void MainView::updateTabBar()
m_tabBar->hide();
m_addTabButton->hide();
}
- else
+ else if (!isTabBarHidden())
{
if (m_tabBar->isHidden())
{
@@ -212,6 +215,13 @@ void MainView::updateTabBar()
}
+void MainView::setTabBarHidden(bool hide)
+{
+ m_addTabButton->setVisible(!hide);
+ KTabWidget::setTabBarHidden(hide);
+}
+
+
void MainView::webReload()
{
WebTab *webTab = currentWebTab();