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:
parent
b27971c501
commit
cfdf80d586
3 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ protected:
|
|||
virtual void DoClear();
|
||||
virtual void DoDeleteOneItem(unsigned int pos);
|
||||
|
||||
virtual void InitialiseSort(QComboBox *combo);
|
||||
void QtInitSort(QComboBox *combo);
|
||||
|
||||
QComboBox *m_qtComboBox;
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ wxChoice::wxChoice() :
|
|||
{
|
||||
}
|
||||
|
||||
void wxChoice::InitialiseSort(QComboBox *combo)
|
||||
void wxChoice::QtInitSort( QComboBox *combo )
|
||||
{
|
||||
QSortFilterProxyModel *proxyModel = new LexicalSortProxyModel();
|
||||
proxyModel->setSourceModel(combo->model());
|
||||
|
|
@ -131,7 +131,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
|||
{
|
||||
m_qtComboBox = new wxQtChoice( parent, this );
|
||||
|
||||
InitialiseSort(m_qtComboBox);
|
||||
QtInitSort( m_qtComboBox );
|
||||
|
||||
while ( n-- > 0 )
|
||||
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
|||
const wxString& name )
|
||||
{
|
||||
m_qtComboBox = new wxQtComboBox( parent, this );
|
||||
InitialiseSort(m_qtComboBox);
|
||||
QtInitSort( m_qtComboBox );
|
||||
|
||||
while ( n-- > 0 )
|
||||
m_qtComboBox->addItem( wxQtConvertString( *choices++ ));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue