Add support for wxLB_SORT to wxListBox in wxQt
This commit is contained in:
committed by
Vadim Zeitlin
parent
f271cc61e8
commit
fd8248762e
@@ -89,6 +89,11 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id,
|
|||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
m_qtWindow = m_qtListWidget = new wxQtListWidget( parent, this );
|
m_qtWindow = m_qtListWidget = new wxQtListWidget( parent, this );
|
||||||
|
|
||||||
|
if ( style == wxLB_SORT )
|
||||||
|
{
|
||||||
|
m_qtListWidget->setSortingEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
while ( n-- > 0 )
|
while ( n-- > 0 )
|
||||||
{
|
{
|
||||||
item = new QListWidgetItem();
|
item = new QListWidgetItem();
|
||||||
|
Reference in New Issue
Block a user