summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 8cf09e2a..dc614f5c 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -218,6 +218,19 @@ void MainView::clear()
}
+void MainView::mouseDoubleClickEvent(QMouseEvent *event)
+{
+ if (!childAt(event->pos())
+ // Remove the line below when QTabWidget does not have a one pixel frame
+ && event->pos().y() < (tabBar()->y() + tabBar()->height()))
+ {
+ newWebView(true);
+ return;
+ }
+ KTabWidget::mouseDoubleClickEvent(event);
+}
+
+
// When index is -1 index chooses the current tab
void MainView::slotReloadTab(int index)
{