diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-07-10 17:10:48 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-07-10 17:10:48 +0200 |
commit | 16c699dd307d0aaf1d3bd1e58fda7b9c9d62ffd7 (patch) | |
tree | 463dfb7236cfa58c4bf6e4fd51166d59a47003d9 /src/lineedit.cpp | |
parent | Merge commit 'abuus/master' (diff) | |
download | rekonq-16c699dd307d0aaf1d3bd1e58fda7b9c9d62ffd7.tar.xz |
Full url selection on double click.
Courtesy patch from Johannes Zellner. Thanks ;)
Diffstat (limited to 'src/lineedit.cpp')
-rw-r--r-- | src/lineedit.cpp | 6 |
1 files changed, 5 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(); +} |