Fix several typos in comments

No real changes yet.
This commit is contained in:
Jay Nabonne
2019-02-18 11:32:37 +00:00
committed by Vadim Zeitlin
parent dfc6cdc063
commit d602afe5ec

View File

@@ -256,7 +256,7 @@ bool wxListCtrl::SetColumnsOrder(const wxArrayInt& WXUNUSED(orders))
int wxListCtrl::GetCountPerPage() const int wxListCtrl::GetCountPerPage() const
{ {
// this may not be exact but should be a good aproximation: // this may not be exact but should be a good approximation:
int h = m_qtTreeWidget->visualItemRect(m_qtTreeWidget->headerItem()).height(); int h = m_qtTreeWidget->visualItemRect(m_qtTreeWidget->headerItem()).height();
if ( h ) if ( h )
return m_qtTreeWidget->height() / h; return m_qtTreeWidget->height() / h;
@@ -266,7 +266,7 @@ int wxListCtrl::GetCountPerPage() const
wxRect wxListCtrl::GetViewRect() const wxRect wxListCtrl::GetViewRect() const
{ {
// this may not be exact but should be a good aproximation: // this may not be exact but should be a good approximation:
wxRect rect = wxQtConvertRect(m_qtTreeWidget->rect()); wxRect rect = wxQtConvertRect(m_qtTreeWidget->rect());
int h = m_qtTreeWidget->header()->defaultSectionSize(); int h = m_qtTreeWidget->header()->defaultSectionSize();
rect.SetTop(h); rect.SetTop(h);
@@ -903,7 +903,7 @@ void wxListCtrl::SetItemCount(long WXUNUSED(count))
bool wxListCtrl::ScrollList(int dx, int dy) bool wxListCtrl::ScrollList(int dx, int dy)
{ {
// aproximate, as scrollContentsBy is protected // approximate, as scrollContentsBy is protected
m_qtTreeWidget->scroll(dx, dy); m_qtTreeWidget->scroll(dx, dy);
return true; return true;
} }