예제 #1
0
void SlidingStackedWidget::slideInNext()
{
    int now = currentIndex();

    if (wrap || (now < count() - 1))
        slideInIdx(now + 1);
}
예제 #2
0
void SlidingStackedWidget::slideInPrev()
{
    int now = currentIndex();

    if (wrap || (now > 0))
        slideInIdx(now - 1);
}
예제 #3
0
void SlidingStackedWidget::slideInNext() {
	int now=currentIndex();
	if (m_wrap||(now<count()-1)) {
		// count is inherit from QStackedWidget
		slideInIdx(now+1);
	}
}