Implement wxListBox::SetFirstItem() for wxQt
Closes https://github.com/wxWidgets/wxWidgets/pull/1236
This commit is contained in:
committed by
Vadim Zeitlin
parent
6b73d002d7
commit
0659006dc6
@@ -213,8 +213,9 @@ int wxListBox::GetSelection() const
|
||||
return m_qtListWidget->row(item);
|
||||
}
|
||||
|
||||
void wxListBox::DoSetFirstItem(int WXUNUSED(n))
|
||||
void wxListBox::DoSetFirstItem(int n)
|
||||
{
|
||||
m_qtListWidget->scrollToItem(m_qtListWidget->item(n), QAbstractItemView::PositionAtTop);
|
||||
}
|
||||
|
||||
void wxListBox::DoSetSelection(int n, bool select)
|
||||
|
Reference in New Issue
Block a user