void CAAutoCollectionView::setCollectionViewOrientation(CACollectionViewOrientation var) { m_pCollectionViewOrientation = var; bool bVertScroll = m_pCollectionViewOrientation == CACollectionViewOrientationVertical; setShowsVerticalScrollIndicator(bVertScroll); setBounceVertical(bVertScroll); setShowsHorizontalScrollIndicator(!bVertScroll); setBounceHorizontal(!bVertScroll); setHorizontalScrollEnabled(!bVertScroll); setVerticalScrollEnabled(bVertScroll); }
void CAListView::setListViewOrientation(CAListViewOrientation var) { m_pListViewOrientation = var; bool bVertScroll = m_pListViewOrientation == CAListViewOrientationVertical; setShowsVerticalScrollIndicator(bVertScroll); setBounceVertical(bVertScroll); setShowsHorizontalScrollIndicator(!bVertScroll); setBounceHorizontal(!bVertScroll); setTouchMovedListenHorizontal(!bVertScroll); setTouchMovedListenVertical(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(); } }