No changes, just use symbolic NO_IMAGE constant instead of -1 or wxNOT_FOUND.
Existing declarations used -1 in several places to indicate the absence of the image which wasn't especially clear and was also inconsistent with other places that used wxNOT_FOUND which didn't make much sense in this context. Add a new symbolic constant NO_IMAGE in wxWithImages and use it in the classes deriving from it. This still doesn't help with wx{Tree,List}Ctrl but improves clarity for the other classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1262,20 +1262,20 @@ public:
|
||||
{ return GetStore()->IsContainer(item); }
|
||||
|
||||
wxDataViewItem AppendItem( const wxDataViewItem& parent,
|
||||
const wxString &text, int icon = -1, wxClientData *data = NULL );
|
||||
const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
|
||||
wxDataViewItem PrependItem( const wxDataViewItem& parent,
|
||||
const wxString &text, int icon = -1, wxClientData *data = NULL );
|
||||
const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
|
||||
wxDataViewItem InsertItem( const wxDataViewItem& parent, const wxDataViewItem& previous,
|
||||
const wxString &text, int icon = -1, wxClientData *data = NULL );
|
||||
const wxString &text, int icon = NO_IMAGE, wxClientData *data = NULL );
|
||||
|
||||
wxDataViewItem PrependContainer( const wxDataViewItem& parent,
|
||||
const wxString &text, int icon = -1, int expanded = -1,
|
||||
const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
|
||||
wxClientData *data = NULL );
|
||||
wxDataViewItem AppendContainer( const wxDataViewItem& parent,
|
||||
const wxString &text, int icon = -1, int expanded = -1,
|
||||
const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
|
||||
wxClientData *data = NULL );
|
||||
wxDataViewItem InsertContainer( const wxDataViewItem& parent, const wxDataViewItem& previous,
|
||||
const wxString &text, int icon = -1, int expanded = -1,
|
||||
const wxString &text, int icon = NO_IMAGE, int expanded = NO_IMAGE,
|
||||
wxClientData *data = NULL );
|
||||
|
||||
wxDataViewItem GetNthChild( const wxDataViewItem& parent, unsigned int pos ) const
|
||||
|
Reference in New Issue
Block a user