Send wxEVT_DATAVIEW_COLUMN_REORDERED in generic wxDataViewCtrl

Simply translate wxEVT_HEADER_END_REORDER into this event, which was
previously only sent by the macOS version.

GtkTreeView doesn't seem to support column drag-and-drop at all, so this
event is still never generated by wxGTK.

Closes #14297.
This commit is contained in:
Vadim Zeitlin
2018-02-04 15:45:23 +01:00
parent f33f1f2078
commit 48fb2b42b1
5 changed files with 28 additions and 6 deletions

View File

@@ -903,11 +903,11 @@ public:
wxDEPRECATED_MSG("Pass the argument to the ctor instead")
void SetDataViewColumn( wxDataViewColumn *col ) { m_column = col; }
wxDEPRECATED_MSG("Pass the argument to the ctor instead")
void SetColumn( int col ) { m_col = col; }
wxDEPRECATED_MSG("Pass the argument to the ctor instead")
void SetItem( const wxDataViewItem &item ) { m_item = item; }
#endif // WXWIN_COMPATIBILITY_3_0
void SetColumn( int col ) { m_col = col; }
protected:
wxDataViewItem m_item;
int m_col;