diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-16 10:43:56 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-16 10:43:56 +0200 |
commit | 1dcb87f400b36f773942562db901e134d14ef8ed (patch) | |
tree | 5520c42af1fb06f7a1002f32cdb3e10578448956 /plugingui/lineedit.cc | |
parent | 7d71222297b1b7ebe8ecae1e21a7c2612185ed39 (diff) |
Fix lineedit mouseclick to the right of the text, which should position text cursor to the right of the text.
Diffstat (limited to 'plugingui/lineedit.cc')
-rw-r--r-- | plugingui/lineedit.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc index 9308902..16c6dda 100644 --- a/plugingui/lineedit.cc +++ b/plugingui/lineedit.cc @@ -94,6 +94,7 @@ void GUI::LineEdit::buttonEvent(ButtonEvent *e) break; } } + if(e->x >= (int)(font.textWidth(_text) + BORDER)) pos = _text.length(); repaintEvent(NULL); } } |