diff options
-rw-r--r-- | src/lineedit.cpp | 6 | ||||
-rw-r--r-- | src/lineedit.h | 1 |
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 |