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