Permalink
Browse files

fixes #4643: pressing buttons labeled "Tab Scroll left" or "Tab Scrol…

…l right" now only scrolls one tab
  • Loading branch information...
Forgon2100 Forgon2100
Forgon2100 authored and Forgon2100 committed Sep 25, 2017
1 parent 866e63b commit 8bac137cf94252241e20f667b9e60639d19e5641
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/widget/listwidget.cpp
@@ -105,12 +105,12 @@ void TabSelectionWidget::setNumberOfTabs(int tabs)
void TabSelectionWidget::prevTabPage()
{
setTab(currentTab - tabsAtOnce);
setTab(currentTab - currentTab % tabsAtOnce - 1);
}
void TabSelectionWidget::nextTabPage()
{
setTab(currentTab + tabsAtOnce);
setTab(currentTab + (tabsAtOnce - currentTab % tabsAtOnce));
}
void TabSelectionWidget::doLayoutAll()

0 comments on commit 8bac137

Please sign in to comment.