Rename wxChoice::InitialiseSort() to QtInitSort()
Use the prefix to indicate that this function is unique to this port. Also don't make unnecessarily make it virtual.
This commit is contained in:
@@ -71,7 +71,7 @@ protected:
|
|||||||
virtual void DoClear();
|
virtual void DoClear();
|
||||||
virtual void DoDeleteOneItem(unsigned int pos);
|
virtual void DoDeleteOneItem(unsigned int pos);
|
||||||
|
|
||||||
virtual void InitialiseSort(QComboBox *combo);
|
void QtInitSort(QComboBox *combo);
|
||||||
|
|
||||||
QComboBox *m_qtComboBox;
|
QComboBox *m_qtComboBox;
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ wxChoice::wxChoice() :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxChoice::InitialiseSort(QComboBox *combo)
|
void wxChoice::QtInitSort( QComboBox *combo )
|
||||||
{
|
{
|
||||||
QSortFilterProxyModel *proxyModel = new LexicalSortProxyModel();
|
QSortFilterProxyModel *proxyModel = new LexicalSortProxyModel();
|
||||||
proxyModel->setSourceModel(combo->model());
|
proxyModel->setSourceModel(combo->model());
|
||||||
@@ -131,7 +131,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
|||||||
{
|
{
|
||||||
m_qtComboBox = new wxQtChoice( parent, this );
|
m_qtComboBox = new wxQtChoice( parent, this );
|
||||||
|
|
||||||
InitialiseSort(m_qtComboBox);
|
QtInitSort( m_qtComboBox );
|
||||||
|
|
||||||
while ( n-- > 0 )
|
while ( n-- > 0 )
|
||||||
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
||||||
|
@@ -128,7 +128,7 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
|||||||
const wxString& name )
|
const wxString& name )
|
||||||
{
|
{
|
||||||
m_qtComboBox = new wxQtComboBox( parent, this );
|
m_qtComboBox = new wxQtComboBox( parent, this );
|
||||||
InitialiseSort(m_qtComboBox);
|
QtInitSort( m_qtComboBox );
|
||||||
|
|
||||||
while ( n-- > 0 )
|
while ( n-- > 0 )
|
||||||
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
||||||
|
Reference in New Issue
Block a user