uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QskStackBoxAnimator for stack boxes with 2 items

uwerat opened this issue · comments

QskStackBoxAnimator1 can't make a proper decision about the direction of the animation for boxes with only 2 items.
F.e when using horizontal pan gestures ( f.e. in a swipe view ) you initiate transitions between the indexes 0->1 or 1->0 regardless of a gesture from left->right or right->left.

As the API of QskStackBox does not know about the specific type of animated transition we have to extend the API of the base class QskStackBoxAnimator with something like Forwards/Backwards.

Fixed: QskStackBoxAnimator1::setOrientation has been replaced by QskStackBoxAnimator1::setDirection.