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:
@@ -29,7 +29,7 @@ public:
|
|||||||
|
|
||||||
// implementation only
|
// implementation only
|
||||||
void QtUpdateState();
|
void QtUpdateState();
|
||||||
virtual int GetEventType() const = 0;
|
virtual int QtGetEventType() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxBitmap DoGetBitmap(State state) const wxOVERRIDE;
|
virtual wxBitmap DoGetBitmap(State state) const wxOVERRIDE;
|
||||||
|
@@ -32,7 +32,7 @@ public:
|
|||||||
virtual wxWindow *SetDefault() wxOVERRIDE;
|
virtual wxWindow *SetDefault() wxOVERRIDE;
|
||||||
|
|
||||||
// implementation only
|
// implementation only
|
||||||
virtual int GetEventType() const wxOVERRIDE { return wxEVT_BUTTON; }
|
virtual int QtGetEventType() const wxOVERRIDE { return wxEVT_BUTTON; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxButton);
|
||||||
|
@@ -36,7 +36,7 @@ public:
|
|||||||
virtual bool GetValue() const wxOVERRIDE;
|
virtual bool GetValue() const wxOVERRIDE;
|
||||||
|
|
||||||
// implementation only
|
// implementation only
|
||||||
virtual int GetEventType() const wxOVERRIDE { return wxEVT_TOGGLEBUTTON; }
|
virtual int QtGetEventType() const wxOVERRIDE { return wxEVT_TOGGLEBUTTON; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxToggleButton);
|
wxDECLARE_DYNAMIC_CLASS(wxToggleButton);
|
||||||
|
@@ -45,7 +45,7 @@ void wxQtPushButton::clicked(bool checked)
|
|||||||
wxAnyButton *handler = GetHandler();
|
wxAnyButton *handler = GetHandler();
|
||||||
if ( handler )
|
if ( handler )
|
||||||
{
|
{
|
||||||
wxCommandEvent event( handler->GetEventType(), handler->GetId() );
|
wxCommandEvent event( handler->QtGetEventType(), handler->GetId() );
|
||||||
if ( isCheckable() ) // toggle buttons
|
if ( isCheckable() ) // toggle buttons
|
||||||
{
|
{
|
||||||
event.SetInt(checked);
|
event.SetInt(checked);
|
||||||
|
Reference in New Issue
Block a user