Implement and document wxDataViewTreeCtrl::IsContainer(), use it in the sample to not add items to non-containers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1138,7 +1138,7 @@ public:
|
||||
|
||||
wxDataViewItem GetNthChild( const wxDataViewItem& parent, unsigned int pos ) const;
|
||||
int GetChildCount( const wxDataViewItem& parent ) const;
|
||||
|
||||
|
||||
void SetItemText( const wxDataViewItem& item, const wxString &text );
|
||||
wxString GetItemText( const wxDataViewItem& item ) const;
|
||||
void SetItemIcon( const wxDataViewItem& item, const wxIcon &icon );
|
||||
@@ -1212,6 +1212,9 @@ public:
|
||||
const wxDataViewTreeStore *GetStore() const
|
||||
{ return (const wxDataViewTreeStore*) GetModel(); }
|
||||
|
||||
bool IsContainer( const wxDataViewItem& item ) const
|
||||
{ return GetStore()->IsContainer(item); }
|
||||
|
||||
void SetImageList( wxImageList *imagelist );
|
||||
wxImageList* GetImageList() { return m_imageList; }
|
||||
|
||||
|
Reference in New Issue
Block a user