diff options
Diffstat (limited to 'plugingui/lineedit.h')
-rw-r--r-- | plugingui/lineedit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/lineedit.h b/plugingui/lineedit.h index 46fa5bc..fa327ca 100644 --- a/plugingui/lineedit.h +++ b/plugingui/lineedit.h @@ -44,6 +44,9 @@ public: std::string text(); void setText(std::string text); + void setReadOnly(bool readonly); + bool readOnly(); + //protected: virtual void keyEvent(KeyEvent *e); virtual void repaintEvent(RepaintEvent *e); @@ -57,6 +60,8 @@ private: std::string _text; size_t pos; + + bool readonly; }; }; |