summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-10 10:13:29 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-10 10:13:29 +0100
commit96c3915adeb68d1dd913d38431540eb52d43ff74 (patch)
tree471f6fce88dc042b704c94f039faf757d3155222 /plugingui/lineedit.h
parenta6ddfd13f78d8f1a319cc997c81db90bf4b7b8f2 (diff)
Make cursor move at mouse click.
Diffstat (limited to 'plugingui/lineedit.h')
-rw-r--r--plugingui/lineedit.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugingui/lineedit.h b/plugingui/lineedit.h
index f85b7ae..46fa5bc 100644
--- a/plugingui/lineedit.h
+++ b/plugingui/lineedit.h
@@ -31,6 +31,7 @@
#include <string>
#include "widget.h"
+#include "font.h"
namespace GUI {
@@ -44,13 +45,16 @@ public:
void setText(std::string text);
//protected:
- void keyEvent(KeyEvent *e);
- void repaintEvent(RepaintEvent *e);
+ virtual void keyEvent(KeyEvent *e);
+ virtual void repaintEvent(RepaintEvent *e);
+ virtual void buttonEvent(ButtonEvent *e);
protected:
virtual void textChanged() {}
private:
+ Font font;
+
std::string _text;
size_t pos;
};