summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
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;
};