Add wxDataViewCtrl::ExpandAncestors() and call it from both EnsureVisible() and Select()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -896,10 +896,11 @@ const wxDataViewModel* wxDataViewCtrlBase::GetModel() const
|
||||
return m_model;
|
||||
}
|
||||
|
||||
void wxDataViewCtrlBase::EnsureVisible( const wxDataViewItem & item,
|
||||
const wxDataViewColumn *WXUNUSED(column) )
|
||||
void wxDataViewCtrlBase::ExpandAncestors( const wxDataViewItem & item )
|
||||
{
|
||||
if (!m_model) return;
|
||||
|
||||
if (!item.IsOk()) return;
|
||||
|
||||
wxVector<wxDataViewItem> parentChain;
|
||||
|
||||
@@ -919,7 +920,6 @@ void wxDataViewCtrlBase::EnsureVisible( const wxDataViewItem & item,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
wxDataViewColumn *
|
||||
wxDataViewCtrlBase::AppendTextColumn( const wxString &label, unsigned int model_column,
|
||||
wxDataViewCellMode mode, int width, wxAlignment align, int flags )
|
||||
|
||||
Reference in New Issue
Block a user