summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:22:04 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:22:04 +0200
commit25d2663dc4008127dad965cca5712a4faac66a10 (patch)
treefbbc292a486128fe7f53f8665542b9a5c566bc60 /plugingui/lineedit.h
parent976ce209938be1bfc088d5f6cdd523a4089e1dd0 (diff)
fix.
Diffstat (limited to 'plugingui/lineedit.h')
-rw-r--r--plugingui/lineedit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/lineedit.h b/plugingui/lineedit.h
index a159d75..2c37522 100644
--- a/plugingui/lineedit.h
+++ b/plugingui/lineedit.h
@@ -48,6 +48,8 @@ public:
void setReadOnly(bool readonly);
bool readOnly();
+ void registerEnterPressedHandler(void (*handler)(void *), void *ptr);
+
//protected:
virtual void keyEvent(KeyEvent *e);
virtual void repaintEvent(RepaintEvent *e);
@@ -65,6 +67,9 @@ private:
size_t pos;
bool readonly;
+
+ void (*handler)(void *);
+ void *ptr;
};
};