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; -}