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:
@@ -662,6 +662,9 @@ public:
|
|||||||
return !allow;
|
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
|
// This should also be overridden to actually use the specified column for
|
||||||
// sorting if using multiple columns is supported.
|
// sorting if using multiple columns is supported.
|
||||||
virtual void ToggleSortByColumn(int WXUNUSED(column)) { }
|
virtual void ToggleSortByColumn(int WXUNUSED(column)) { }
|
||||||
|
@@ -227,7 +227,7 @@ public:
|
|||||||
virtual bool SetFont(const wxFont & font) wxOVERRIDE;
|
virtual bool SetFont(const wxFont & font) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AllowMultiColumnSort(bool allow) 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;
|
virtual void ToggleSortByColumn(int column) wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
|
Reference in New Issue
Block a user