Make wxDataViewCtrl::IsMultiColumnSortAllowed() exist in all ports
Contrary to the documentation, this method only existed in the generic control, add it to the base class now so that the code using it could compile when using the native ports too.
This commit is contained in:
parent
062444ee50
commit
34b0e534f8
@ -662,6 +662,9 @@ public:
|
||||
return !allow;
|
||||
}
|
||||
|
||||
// Return true if multi column sort is currently allowed.
|
||||
virtual bool IsMultiColumnSortAllowed() const { return false; }
|
||||
|
||||
// This should also be overridden to actually use the specified column for
|
||||
// sorting if using multiple columns is supported.
|
||||
virtual void ToggleSortByColumn(int WXUNUSED(column)) { }
|
||||
|
@ -227,7 +227,7 @@ public:
|
||||
virtual bool SetFont(const wxFont & font) wxOVERRIDE;
|
||||
|
||||
virtual bool AllowMultiColumnSort(bool allow) wxOVERRIDE;
|
||||
virtual bool IsMultiColumnSortAllowed() { return m_allowMultiColumnSort; }
|
||||
virtual bool IsMultiColumnSortAllowed() const wxOVERRIDE { return m_allowMultiColumnSort; }
|
||||
virtual void ToggleSortByColumn(int column) wxOVERRIDE;
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
|
Loading…
Reference in New Issue
Block a user