Symbol/Footprint Chooser: make columns resizable, sortable

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16353
This commit is contained in:
Mike Williams 2023-12-13 09:46:17 -05:00
parent b3b7a41d51
commit c3d8fc4494
1 changed files with 3 additions and 3 deletions

View File

@ -380,9 +380,9 @@ wxDataViewColumn* LIB_TREE_MODEL_ADAPTER::doAddColumn( const wxString& aHeader,
int index = (int) m_columns.size();
wxDataViewColumn* col = new wxDataViewColumn( translatedHeader, new LIB_TREE_RENDERER(),
index, m_colWidths[aHeader], wxALIGN_NOT,
wxDATAVIEW_CELL_INERT );
wxDataViewColumn* col = new wxDataViewColumn(
translatedHeader, new LIB_TREE_RENDERER(), index, m_colWidths[aHeader], wxALIGN_NOT,
wxDATAVIEW_CELL_INERT | wxDATAVIEW_COL_RESIZABLE | wxDATAVIEW_COL_SORTABLE );
m_widget->AppendColumn( col );
col->SetMinWidth( headerMinWidth.x );