From 50edbf24cc309568c8081025000ebeb2f33787db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Wed, 13 Feb 2019 01:09:16 +0200 Subject: [PATCH] Change the base class of wxBitmapToggleButton --- include/wx/qt/tglbtn.h | 2 +- src/qt/tglbtn.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/qt/tglbtn.h b/include/wx/qt/tglbtn.h index 72ff09347a..6cebfe34e1 100644 --- a/include/wx/qt/tglbtn.h +++ b/include/wx/qt/tglbtn.h @@ -44,7 +44,7 @@ private: -class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButtonBase +class WXDLLIMPEXP_CORE wxBitmapToggleButton: public wxToggleButton { public: wxBitmapToggleButton(); diff --git a/src/qt/tglbtn.cpp b/src/qt/tglbtn.cpp index 8434179b9e..b4e971f35c 100644 --- a/src/qt/tglbtn.cpp +++ b/src/qt/tglbtn.cpp @@ -52,9 +52,9 @@ void wxQtToggleButton::clicked( bool checked ) } } -wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent ); +wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent ); -wxIMPLEMENT_DYNAMIC_CLASS(wxBitmapToggleButton, wxControl); +wxIMPLEMENT_DYNAMIC_CLASS(wxBitmapToggleButton, wxToggleButton); wxBitmapToggleButton::wxBitmapToggleButton() {