From c28496c854a41baf865fc6e34b9d0453034ee84b Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 3 Apr 2010 23:09:25 +0200 Subject: - Add the control modifier support for back, next and home actions and for the UrlTreeView - Use SettingsOpenTab to open a link in a new tab with the bookmark toolbar --- src/urltreeview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urltreeview.cpp') diff --git a/src/urltreeview.cpp b/src/urltreeview.cpp index 507a7973..b8be9dd2 100644 --- a/src/urltreeview.cpp +++ b/src/urltreeview.cpp @@ -95,7 +95,7 @@ void UrlTreeView::mouseReleaseEvent(QMouseEvent *event) if(!index.isValid()) return; - if(event->button() == Qt::MidButton) + if(event->button() == Qt::MidButton || event->modifiers() == Qt::ControlModifier) validOpenUrl(qVariantValue< KUrl >(index.data(Qt::UserRole)), Rekonq::NewCurrentTab); else if(event->button() == Qt::LeftButton) -- cgit v1.2.1 From 5229b51d6199227e7c7351e167d47c50cbc39f8d Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 3 Apr 2010 23:13:10 +0200 Subject: Use SettingsOpenTab for UrlTreeView to --- src/urltreeview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urltreeview.cpp') diff --git a/src/urltreeview.cpp b/src/urltreeview.cpp index b8be9dd2..aeaef2f7 100644 --- a/src/urltreeview.cpp +++ b/src/urltreeview.cpp @@ -96,7 +96,7 @@ void UrlTreeView::mouseReleaseEvent(QMouseEvent *event) return; if(event->button() == Qt::MidButton || event->modifiers() == Qt::ControlModifier) - validOpenUrl(qVariantValue< KUrl >(index.data(Qt::UserRole)), Rekonq::NewCurrentTab); + validOpenUrl(qVariantValue< KUrl >(index.data(Qt::UserRole)), Rekonq::SettingOpenTab); else if(event->button() == Qt::LeftButton) { -- cgit v1.2.1