summaryrefslogtreecommitdiff
path: root/src/urlbar/listitem.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-03-29 18:32:16 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-03-29 18:32:16 +0200
commitc6e137acee1f707d33afd6bf5bbbe994167d6a2f (patch)
tree0ee0f7aa32a5b5d5939f5e03a4d40fc3d3c85328 /src/urlbar/listitem.cpp
parentrekonq 0.4.57 (diff)
downloadrekonq-c6e137acee1f707d33afd6bf5bbbe994167d6a2f.tar.xz
Add mid click support for the completition widget of the url bar
Diffstat (limited to 'src/urlbar/listitem.cpp')
-rw-r--r--src/urlbar/listitem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index 92951cb7..d9837c7e 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -44,6 +44,7 @@
#include <QPixmap>
#include <QStylePainter>
#include <QFile>
+#include <QMouseEvent>
ListItem::ListItem(const UrlSearchItem &item, QWidget *parent)
: QWidget(parent),
@@ -167,7 +168,7 @@ void ListItem::leaveEvent(QEvent *e)
void ListItem::mousePressEvent(QMouseEvent *e)
{
- emit itemClicked(this);
+ emit itemClicked(this, e->button());
QWidget::mousePressEvent(e);
}