Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
d336f427
Commit
d336f427
authored
Mar 02, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed QT animations
parent
6c2947ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
containers.py
blink/widgets/containers.py
+2
-2
No files found.
blink/widgets/containers.py
View file @
d336f427
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment