Commit d336f427 authored by Adrian Georgescu's avatar Adrian Georgescu

Fixed QT animations

parent 6c2947ce
...@@ -78,13 +78,13 @@ class SlidingStackedWidget(QStackedWidget): ...@@ -78,13 +78,13 @@ class SlidingStackedWidget(QStackedWidget):
next_widget.show() next_widget.show()
next_widget.raise_() next_widget.raise_()
prev_widget_animation = QPropertyAnimation(prev_widget, "pos") prev_widget_animation = QPropertyAnimation(prev_widget, b"pos")
prev_widget_animation.setDuration(self.animationDuration) prev_widget_animation.setDuration(self.animationDuration)
prev_widget_animation.setEasingCurve(QEasingCurve(self.animationEasingCurve)) prev_widget_animation.setEasingCurve(QEasingCurve(self.animationEasingCurve))
prev_widget_animation.setStartValue(prev_widget_position) prev_widget_animation.setStartValue(prev_widget_position)
prev_widget_animation.setEndValue(prev_widget_position + offset) prev_widget_animation.setEndValue(prev_widget_position + offset)
next_widget_animation = QPropertyAnimation(next_widget, "pos") next_widget_animation = QPropertyAnimation(next_widget, b"pos")
next_widget_animation.setDuration(self.animationDuration) next_widget_animation.setDuration(self.animationDuration)
next_widget_animation.setEasingCurve(QEasingCurve(self.animationEasingCurve)) next_widget_animation.setEasingCurve(QEasingCurve(self.animationEasingCurve))
next_widget_animation.setStartValue(next_widget_position - offset) next_widget_animation.setStartValue(next_widget_position - offset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment