Make HasValue virtual in wxDataViewModel and have implementations use it. This addresses issue https://trac.wxwidgets.org/ticket/18724
This commit is contained in:
@@ -304,14 +304,17 @@ public:
|
||||
|
||||
All normal items have values in all columns but the container items
|
||||
only show their label in the first column (@a col == 0) by default (but
|
||||
see HasContainerColumns()). So this function always returns true for
|
||||
see HasContainerColumns()). So this function by default returns true for
|
||||
the first column while for the other ones it returns true only if the
|
||||
item is not a container or HasContainerColumns() was overridden to
|
||||
return true for it.
|
||||
|
||||
Override this method to explicitly specify for which columns a given
|
||||
item has values.
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
bool HasValue(const wxDataViewItem& item, unsigned col) const;
|
||||
virtual bool HasValue(const wxDataViewItem& item, unsigned col) const;
|
||||
|
||||
/**
|
||||
Override this to indicate of @a item is a container, i.e.\ if
|
||||
|
Reference in New Issue
Block a user