summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-16 10:43:56 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-16 10:43:56 +0200
commit1dcb87f400b36f773942562db901e134d14ef8ed (patch)
tree5520c42af1fb06f7a1002f32cdb3e10578448956 /plugingui
parent7d71222297b1b7ebe8ecae1e21a7c2612185ed39 (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')
-rw-r--r--plugingui/lineedit.cc1
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);
}
}