From 1dcb87f400b36f773942562db901e134d14ef8ed Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 16 May 2013 10:43:56 +0200 Subject: Fix lineedit mouseclick to the right of the text, which should position text cursor to the right of the text. --- plugingui/lineedit.cc | 1 + 1 file changed, 1 insertion(+) 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); } } -- cgit v1.2.3