Reuse Qt implementation of normal button for toggle buttons
This commit is contained in:
@@ -29,6 +29,7 @@ public:
|
||||
|
||||
// implementation only
|
||||
void QtUpdateState();
|
||||
virtual int GetEventType() const = 0;
|
||||
|
||||
protected:
|
||||
virtual wxBitmap DoGetBitmap(State state) const wxOVERRIDE;
|
||||
|
@@ -31,6 +31,9 @@ public:
|
||||
|
||||
virtual wxWindow *SetDefault();
|
||||
|
||||
// implementation only
|
||||
virtual int GetEventType() const wxOVERRIDE { return wxEVT_BUTTON; }
|
||||
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
|
||||
};
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user