Rename wxDataViewEvent::SetEditCanceled() and remove its argument
This method should be only used when the edit is really cancelled, so it doesn't need to take a boolean argument. It should also use the same spelling as IsEditCancelled() (and for consistency with the rest of wxWidgets API which uses British English). Also remove this method from the documentation, it is not part of the public API.
This commit is contained in:
@@ -798,7 +798,8 @@ bool wxDataViewRendererBase::FinishEditing()
|
||||
// Now we should send Editing Done event
|
||||
wxDataViewEvent event(wxEVT_DATAVIEW_ITEM_EDITING_DONE, dv_ctrl, column, m_item);
|
||||
event.SetValue( value );
|
||||
event.SetEditCanceled( !isValid );
|
||||
if ( !isValid )
|
||||
event.SetEditCancelled();
|
||||
dv_ctrl->GetEventHandler()->ProcessEvent( event );
|
||||
|
||||
bool accepted = false;
|
||||
|
||||
Reference in New Issue
Block a user