summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-09-22 12:36:01 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commitb87d73147b681d548c11785004c21e469c026391 (patch)
tree514903d91f781c2c9c05236d747bc614be171314 /src/webtab
parentIntegrated spell checking for rekonq2 (lindsay's work imported) (diff)
downloadrekonq-b87d73147b681d548c11785004c21e469c026391.tar.xz
Re-enable fullscreen capabilities
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webview.cpp27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 5cb5e81d..2ac68bf3 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -345,11 +345,10 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu.addAction(webwin->actionByName("page_source"));
menu.addAction(inspectAction);
- if (isFullScreen())
- {
- menu.addSeparator();
- menu.addAction(webwin->actionByName("fullscreen"));
- }
+ // we need to show everytime this because we cannot communicate with the tabwindow.
+ // We are NOT sure it exists..
+ menu.addSeparator();
+ menu.addAction(webwin->actionByName(KStandardAction::name(KStandardAction::FullScreen)));
}
// LINK ACTIONS -------------------------------------------------------------------
@@ -472,7 +471,8 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
KService::Ptr defaultEngine = SearchEngine::defaultEngine();
if (defaultEngine) // check if a default engine is set
{
- a = new KAction(i18nc("Search selected text with the default search engine", "Search with %1", defaultEngine->name()), this);
+ a = new KAction(i18nc("Search selected text with the default search engine", "Search with %1",
+ defaultEngine->name()), this);
a->setIcon(IconManager::self()->iconForUrl(SearchEngine::buildQuery(defaultEngine, "")));
a->setData(defaultEngine->entryPath());
connect(a, SIGNAL(triggered(bool)), this, SLOT(search()));
@@ -622,21 +622,6 @@ void WebView::mouseMoveEvent(QMouseEvent *event)
return;
}
- WebTab *tab = qobject_cast<WebTab *>(parent());
- WebWindow *webwin = tab->webWindow();
- if (webwin->isFullScreen())
- {
- // FIXME
-// if (event->pos().y() >= 0 && event->pos().y() <= 4)
-// {
-// webwin->setWidgetsVisible(true);
-// }
-// else
-// {
-// if (!webwin->urlBar()->hasFocus())
-// webwin->setWidgetsVisible(false);
-// }
- }
KWebView::mouseMoveEvent(event);
}