From 7be9c8c6707430c4feaefbe79b0c6dc4ef6fee08 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:15:19 +0200 Subject: [PATCH] Remove functions that are identical with the ones in base classes --- include/wx/qt/tglbtn.h | 5 ----- src/qt/tglbtn.cpp | 20 -------------------- 2 files changed, 25 deletions(-) diff --git a/include/wx/qt/tglbtn.h b/include/wx/qt/tglbtn.h index 6cebfe34e1..a2c9373974 100644 --- a/include/wx/qt/tglbtn.h +++ b/include/wx/qt/tglbtn.h @@ -35,7 +35,6 @@ public: virtual void SetValue(bool state); virtual bool GetValue() const; - virtual QWidget *GetHandle() const; private: wxDECLARE_DYNAMIC_CLASS(wxToggleButton); @@ -65,10 +64,6 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr); - virtual void SetValue(bool state); - virtual bool GetValue() const; - - virtual QWidget *GetHandle() const; private: wxDECLARE_DYNAMIC_CLASS(wxBitmapToggleButton); diff --git a/src/qt/tglbtn.cpp b/src/qt/tglbtn.cpp index b4e971f35c..a03d5a7cfa 100644 --- a/src/qt/tglbtn.cpp +++ b/src/qt/tglbtn.cpp @@ -86,21 +86,6 @@ bool wxBitmapToggleButton::Create(wxWindow *parent, return QtCreateControl( parent, id, pos, size, style, validator, name ); } -void wxBitmapToggleButton::SetValue(bool state) -{ - m_qtPushButton->setChecked( state ); -} - -bool wxBitmapToggleButton::GetValue() const -{ - return m_qtPushButton->isChecked(); -} - -QWidget *wxBitmapToggleButton::GetHandle() const -{ - return m_qtPushButton; -} - //############################################################################## wxIMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxControl); @@ -147,8 +132,3 @@ bool wxToggleButton::GetValue() const { return m_qtPushButton->isChecked(); } - -QWidget *wxToggleButton::GetHandle() const -{ - return m_qtPushButton; -}