Add support for wxLB_SORT to wxListBox in wxQt

This commit is contained in:
Liam Treacy
2018-12-06 14:42:50 +00:00
committed by Vadim Zeitlin
parent f271cc61e8
commit fd8248762e

View File

@@ -89,6 +89,11 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id,
QListWidgetItem* item;
m_qtWindow = m_qtListWidget = new wxQtListWidget( parent, this );
if ( style == wxLB_SORT )
{
m_qtListWidget->setSortingEnabled(true);
}
while ( n-- > 0 )
{
item = new QListWidgetItem();