Rename Qt-specific GetEventType() to start with "Qt" prefix
This avoids conflicts with another method with the same name defined in generic wxGenericFileDirButton, which must neither override nor hide this method of wxButton.
This commit is contained in:
parent
9f63592eba
commit
7352a2879c
@ -29,7 +29,7 @@ public:
|
||||
|
||||
// implementation only
|
||||
void QtUpdateState();
|
||||
virtual int GetEventType() const = 0;
|
||||
virtual int QtGetEventType() const = 0;
|
||||
|
||||
protected:
|
||||
virtual wxBitmap DoGetBitmap(State state) const wxOVERRIDE;
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
virtual wxWindow *SetDefault() wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
virtual int GetEventType() const wxOVERRIDE { return wxEVT_BUTTON; }
|
||||
virtual int QtGetEventType() const wxOVERRIDE { return wxEVT_BUTTON; }
|
||||
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
virtual bool GetValue() const wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
virtual int GetEventType() const wxOVERRIDE { return wxEVT_TOGGLEBUTTON; }
|
||||
virtual int QtGetEventType() const wxOVERRIDE { return wxEVT_TOGGLEBUTTON; }
|
||||
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS(wxToggleButton);
|
||||
|
@ -45,7 +45,7 @@ void wxQtPushButton::clicked(bool checked)
|
||||
wxAnyButton *handler = GetHandler();
|
||||
if ( handler )
|
||||
{
|
||||
wxCommandEvent event( handler->GetEventType(), handler->GetId() );
|
||||
wxCommandEvent event( handler->QtGetEventType(), handler->GetId() );
|
||||
if ( isCheckable() ) // toggle buttons
|
||||
{
|
||||
event.SetInt(checked);
|
||||
|
Loading…
Reference in New Issue
Block a user