Reuse Qt implementation of normal button for toggle buttons

This commit is contained in:
Cătălin Răceanu
2019-02-13 01:23:20 +02:00
parent 7be9c8c670
commit be9c18cbd6
5 changed files with 29 additions and 35 deletions

View File

@@ -35,6 +35,8 @@ public:
virtual void SetValue(bool state);
virtual bool GetValue() const;
// implementation only
virtual int GetEventType() const wxOVERRIDE { return wxEVT_TOGGLEBUTTON; }
private:
wxDECLARE_DYNAMIC_CLASS(wxToggleButton);