BControl subclasses: Override SetIcon()
... and implement Perform() action for potential later use.
This commit is contained in:
@@ -589,12 +589,24 @@ BCheckBox::Perform(perform_code code, void* _data)
|
||||
BCheckBox::DoLayout();
|
||||
return B_OK;
|
||||
}
|
||||
case PERFORM_CODE_SET_ICON:
|
||||
{
|
||||
perform_data_set_icon* data = (perform_data_set_icon*)_data;
|
||||
return BCheckBox::SetIcon(data->icon, data->flags);
|
||||
}
|
||||
}
|
||||
|
||||
return BControl::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BCheckBox::SetIcon(const BBitmap* icon, uint32 flags)
|
||||
{
|
||||
return BControl::SetIcon(icon, flags);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BCheckBox::LayoutInvalidated(bool descendants)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user