void wxAnyButton::DoSetBitmap(const wxBitmap& bitmap, State which) { switch ( which ) { case State_Normal: QtSetBitmap(bitmap); InvalidateBestSize(); break; case State_Pressed: wxMISSING_IMPLEMENTATION( wxSTRINGIZE( State_Pressed )); break; case State_Current: wxMISSING_IMPLEMENTATION( wxSTRINGIZE( State_Current )); break; case State_Focused: wxMISSING_IMPLEMENTATION( wxSTRINGIZE( State_Focused )); break; case State_Disabled: wxMISSING_IMPLEMENTATION( wxSTRINGIZE( State_Disabled )); break; case State_Max: wxMISSING_IMPLEMENTATION( wxSTRINGIZE( State_Max )); } }
bool wxBitmapToggleButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name) { // this button is toggleable and has a bitmap label: QtSetBitmap( label ); return QtCreateControl( parent, id, pos, size, style, validator, name ); }