Replace wxDataViewCtrl::StartEditor() with EditItem().
This is more consistent with other wxDVC methods (taking column pointer as its argument) and other DVC-like classes where the name EditLabel() is used for similar purposes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3599,7 +3599,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
|
||||
wxDataViewColumn *editableCol = FindColumnForEditing(item, wxDATAVIEW_CELL_EDITABLE);
|
||||
|
||||
if ( editableCol )
|
||||
GetOwner()->StartEditor(item, GetOwner()->GetColumnIndex(editableCol));
|
||||
GetOwner()->EditItem(item, editableCol);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -5021,13 +5021,12 @@ bool wxDataViewCtrl::IsExpanded( const wxDataViewItem & item ) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::StartEditor( const wxDataViewItem & item, unsigned int column )
|
||||
void wxDataViewCtrl::EditItem(const wxDataViewItem& item, const wxDataViewColumn *column)
|
||||
{
|
||||
wxDataViewColumn* col = GetColumn( column );
|
||||
if (!col)
|
||||
return;
|
||||
wxCHECK_RET( item.IsOk(), "invalid item" );
|
||||
wxCHECK_RET( column, "no column provided" );
|
||||
|
||||
m_clientArea->StartEditing(item, col);
|
||||
m_clientArea->StartEditing(item, column);
|
||||
}
|
||||
|
||||
#endif // !wxUSE_GENERICDATAVIEWCTRL
|
||||
|
Reference in New Issue
Block a user