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:
ali kettab 2023-10-22 18:52:55 +01:00
parent 9b2e4ff2e5
commit 334814bf85
2 changed files with 46 additions and 0 deletions

View file

@ -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: