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