void CAListView::setListViewOrientation(CAListViewOrientation var) { m_pListViewOrientation = var; bool bVertScroll = m_pListViewOrientation == CAListViewOrientationVertical; setShowsVerticalScrollIndicator(bVertScroll); setBounceVertical(bVertScroll); setShowsHorizontalScrollIndicator(!bVertScroll); setBounceHorizontal(!bVertScroll); setHorizontalScrollEnabled(!bVertScroll); setVerticalScrollEnabled(bVertScroll); }
void CAListView::setOrientation(const CAListView::Orientation& var) { m_eOrientation = var; bool bVertScroll = m_eOrientation == Vertical; setShowsVerticalScrollIndicator(bVertScroll); setBounceVertical(bVertScroll); setShowsHorizontalScrollIndicator(!bVertScroll); setBounceHorizontal(!bVertScroll); setHorizontalScrollEnabled(!bVertScroll); setVerticalScrollEnabled(bVertScroll); if(!m_mpUsedListCells.empty()) { this->reloadData(); } }