Replace wxTreeItemAttr and wxListItemAttr with wxItemAttr
The two existing structs were completely identical, just replace them with a single wxItemAttr. Notice that wxDataViewItemAttr is not quite the same, although pretty similar, so it remains separate for now. It would be nice to combine it with this one too in the future, e.g. to make it simpler to make items bold in a wxListCtrl.
This commit is contained in:
@@ -402,7 +402,7 @@ protected:
|
||||
|
||||
// get the item attribute, either by quering it for virtual control, or by
|
||||
// returning the one previously set using setter methods for a normal one
|
||||
wxListItemAttr *DoGetItemColumnAttr(long item, long column) const;
|
||||
wxItemAttr *DoGetItemColumnAttr(long item, long column) const;
|
||||
|
||||
|
||||
wxTextCtrl* m_textCtrl; // The control used for editing a label
|
||||
@@ -437,7 +437,7 @@ protected:
|
||||
virtual int OnGetItemColumnImage(long item, long column) const;
|
||||
|
||||
// return the attribute for the given item and column (may return NULL if none)
|
||||
virtual wxListItemAttr *OnGetItemColumnAttr(long item, long WXUNUSED(column)) const
|
||||
virtual wxItemAttr *OnGetItemColumnAttr(long item, long WXUNUSED(column)) const
|
||||
{
|
||||
return OnGetItemAttr(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user