Am Sonntag 20 September 2009 00:36:52 schrieb Andrea Diamantini:
> On Wednesday 09 September 2009 18:40:49 Ronny Scholz wrote:
> > Hello rekonqs,
> >
> > i made a small patch that opens a new tab if the user double clicks into
> > the empty area on the tabbar.
> > Hope this will get into mainline as I am using this function in firefox
> > very often.
> >
> > Patch was created against current rekonq/mainline:master
> >
> > Greetings,
> > Ronny
>
> Merged with commit 709e63.
> Will appear in rekonq 0.2.60
>
> Thanks!
>
There is some unneeded code remaining.
The attached patch will remove it.
Ronny
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 5baf99e..f9a5cc5 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -581,18 +581,6 @@ QLabel *MainView::animatedLoading(int index, bool addMovie)
return label;
}
-
-void MainView::mouseDoubleClickEvent(QMouseEvent *event) //WARNING Need to be fix
-{
- if (!childAt(event->pos()))
- {
- newTab();
- return;
- }
- KTabWidget::mouseDoubleClickEvent(event);
-}
-
-
void MainView::resizeEvent(QResizeEvent *event)
{
KTabWidget::resizeEvent(event);
diff --git a/src/mainview.h b/src/mainview.h
index 5410b70..0d4145f 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -144,7 +144,6 @@ private slots:
protected:
- virtual void mouseDoubleClickEvent(QMouseEvent *event);
virtual void resizeEvent(QResizeEvent *event);
private:
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq