From 6a6263ee4c9ea373474bd0be4d41153d32145f31 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 31 Jul 2013 18:25:50 +0200 Subject: Add contextual action when in fullscreen to easily exit BUG: 323012 --- src/webtab/webview.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/webtab') 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())); } -- cgit v1.2.1