Implement wxTextCtrl::SetMaxLength() function under wxQt
This is currently implemented for single line control only. But unfortunately the wxEVT_TEXT_MAXLEN event is only emitted when the Qt version used is 5.12 or higher.
This commit is contained in:
parent
9b2e4ff2e5
commit
334814bf85
2 changed files with 46 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ public:
|
|||
virtual void DoSetValue(const wxString &text, int flags = 0) override;
|
||||
virtual void WriteText(const wxString& text) override;
|
||||
|
||||
virtual void SetMaxLength(unsigned long len) override;
|
||||
|
||||
virtual QWidget *GetHandle() const override;
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue