summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r--src/tabwindow/tabwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index ba355e51..297653e8 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -43,6 +43,7 @@
#include <KLocalizedString>
#include <KStandardDirs>
#include <KUrl>
+#include <KToggleFullScreenAction>
#include <KWindowInfo>
#include <KWindowSystem>
@@ -146,6 +147,8 @@ WebWindow *TabWindow::prepareNewTab(WebPage *page)
connect(tab, SIGNAL(pageCreated(WebPage *)), this, SLOT(pageCreated(WebPage *)));
+ connect(tab, SIGNAL(setFullScreen(bool)), this, SLOT(setFullScreen(bool)));
+
return tab;
}
@@ -490,3 +493,11 @@ void TabWindow::restoreClosedTab(int i)
// just to get sure...
m_recentlyClosedTabs.removeAll(history);
}
+
+
+void TabWindow::setFullScreen(bool makeFullScreen)
+{
+ tabBar()->setVisible(!makeFullScreen);
+ _addTabButton->setVisible(!makeFullScreen);
+ KToggleFullScreenAction::setFullScreen(this, makeFullScreen);
+}