summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-07-31 18:25:50 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-07-31 18:25:50 +0200
commit6a6263ee4c9ea373474bd0be4d41153d32145f31 (patch)
tree11c9191410da95149167363ac67d9bceea92ef10
parentRestore history tab. Fix regression. (diff)
downloadrekonq-6a6263ee4c9ea373474bd0be4d41153d32145f31.tar.xz
Add contextual action when in fullscreen to easily exit
BUG: 323012
-rw-r--r--src/webtab/webview.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 40a62864..3e7390e6 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -591,7 +591,16 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
a = KStandardAction::spelling(this, SLOT(spellCheck()), &menu);
menu.addAction(a);
}
-
+
+ if (webwin && window()->isFullScreen())
+ {
+ a = new KAction(KIcon("view-fullscreen"), i18n("Exit FullScreen Mode"), &menu);
+ a->setCheckable(true);
+ a->setChecked(true);
+ connect(a, SIGNAL(triggered(bool)), webwin, SIGNAL(setFullScreen(bool)));
+ menu.addAction(a);
+ }
+
// finally launch the menu...
menu.exec(mapToGlobal(event->pos()));
}