示例#1
0
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);
}
示例#2
0
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();
    }
}