summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-10 17:10:48 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-10 17:10:48 +0200
commit16c699dd307d0aaf1d3bd1e58fda7b9c9d62ffd7 (patch)
tree463dfb7236cfa58c4bf6e4fd51166d59a47003d9 /src
parentMerge commit 'abuus/master' (diff)
downloadrekonq-16c699dd307d0aaf1d3bd1e58fda7b9c9d62ffd7.tar.xz
Full url selection on double click.
Courtesy patch from Johannes Zellner. Thanks ;)
Diffstat (limited to 'src')
-rw-r--r--src/lineedit.cpp6
-rw-r--r--src/lineedit.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lineedit.cpp b/src/lineedit.cpp
index 05ba2764..6d3d3ef4 100644
--- a/src/lineedit.cpp
+++ b/src/lineedit.cpp
@@ -35,7 +35,6 @@ LineEdit::LineEdit(QWidget* parent)
{
setMinimumWidth(200);
setFocusPolicy(Qt::WheelFocus);
-
setHandleSignals(true);
}
@@ -79,3 +78,8 @@ void LineEdit::focusOutEvent(QFocusEvent *event)
setCursorPosition(0);
deselect();
}
+
+void LineEdit::mouseDoubleClickEvent(QMouseEvent *)
+{
+ selectAll();
+}
diff --git a/src/lineedit.h b/src/lineedit.h
index a9ba68c4..4d989cf4 100644
--- a/src/lineedit.h
+++ b/src/lineedit.h
@@ -44,6 +44,7 @@ protected:
virtual void contextMenuEvent(QContextMenuEvent*);
virtual void focusInEvent(QFocusEvent*);
virtual void focusOutEvent(QFocusEvent*);
+ virtual void mouseDoubleClickEvent(QMouseEvent *);
};
#endif // LINEEDIT_H