summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-10-17 14:04:09 +0200
committermegabigbug <megabigbug@arrakis.(none)>2009-10-17 14:04:09 +0200
commitcd0f7e0a883472b3183320b43bab0e04c07d4aaf (patch)
tree3aa078d0c36f5d2cca566baa0b7c8c7a6f06791d /src/webview.cpp
parentMerge commit 'refs/merge-requests/1827' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-cd0f7e0a883472b3183320b43bab0e04c07d4aaf.tar.xz
reintroduce and fix recently closed tab feature
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 9e06c9da..de755bfa 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -64,6 +64,7 @@ WebView::WebView(QWidget* parent)
connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&)));
connect(this, SIGNAL(loadProgress(int)), this, SLOT(slotUpdateProgress(int)));
connect(this, SIGNAL(loadFinished(bool)), this, SLOT(slotLoadFinished(bool)));
+ connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
}
@@ -196,12 +197,12 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
}
}
}
-
+
if (!searchMenu->menu()->isEmpty())
{
menu.addAction(searchMenu);
}
-
+
menu.addSeparator();
// TODO Add translate, show translation
}
@@ -395,7 +396,7 @@ void WebView::viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifier
{
KAction *a = qobject_cast<KAction*>(sender());
KUrl url(a->data().toUrl());
-
+
if (modifiers & Qt::ControlModifier || buttons == Qt::MidButton)
{
Application::instance()->loadUrl(url, Rekonq::SettingOpenTab);
@@ -433,3 +434,4 @@ void WebView::keyPressEvent(QKeyEvent *event)
}
QWebView::keyPressEvent(event);
}
+