Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
140cbd3c
Commit
140cbd3c
authored
7 years ago
by
Konstantinos Sideris
Browse files
Options
Downloads
Patches
Plain Diff
Slow down spinner
parent
06cacc13
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ui/CircularProgress.h
+3
-0
3 additions, 0 deletions
include/ui/CircularProgress.h
src/ui/CircularProgress.cc
+6
-5
6 additions, 5 deletions
src/ui/CircularProgress.cc
with
9 additions
and
5 deletions
include/ui/CircularProgress.h
+
3
−
0
View file @
140cbd3c
...
...
@@ -46,6 +46,9 @@ private:
// Circle radius.
int
size_
;
// Animation duration.
int
duration_
;
};
class
CircularProgressDelegate
:
public
QObject
...
...
This diff is collapsed.
Click to expand it.
src/ui/CircularProgress.cc
+
6
−
5
View file @
140cbd3c
...
...
@@ -11,6 +11,7 @@ CircularProgress::CircularProgress(QWidget *parent)
,
progress_type_
{
ui
::
ProgressType
::
IndeterminateProgress
}
,
width_
{
6.25
}
,
size_
{
64
}
,
duration_
{
3050
}
{
delegate_
=
new
CircularProgressDelegate
(
this
);
...
...
@@ -24,11 +25,11 @@ CircularProgress::CircularProgress(QWidget *parent)
length_animation
->
setTargetObject
(
delegate_
);
length_animation
->
setEasingCurve
(
QEasingCurve
::
InOutQuad
);
length_animation
->
setStartValue
(
0.1
);
length_animation
->
setKeyValueAt
(
0.15
,
0.2
);
length_animation
->
setKeyValueAt
(
0.15
,
3
);
length_animation
->
setKeyValueAt
(
0.6
,
20
);
length_animation
->
setKeyValueAt
(
0.7
,
20
);
length_animation
->
setEndValue
(
20
);
length_animation
->
setDuration
(
2050
);
length_animation
->
setDuration
(
duration_
);
auto
offset_animation
=
new
QPropertyAnimation
(
this
);
offset_animation
->
setPropertyName
(
"dashOffset"
);
...
...
@@ -39,14 +40,14 @@ CircularProgress::CircularProgress(QWidget *parent)
offset_animation
->
setKeyValueAt
(
0.6
,
-
7
);
offset_animation
->
setKeyValueAt
(
0.7
,
-
7
);
offset_animation
->
setEndValue
(
-
25
);
offset_animation
->
setDuration
(
2050
);
offset_animation
->
setDuration
(
duration_
);
auto
angle_animation
=
new
QPropertyAnimation
(
this
);
angle_animation
->
setPropertyName
(
"angle"
);
angle_animation
->
setTargetObject
(
delegate_
);
angle_animation
->
setStartValue
(
0
);
angle_animation
->
setEndValue
(
719
);
angle_animation
->
setDuration
(
2050
);
angle_animation
->
setEndValue
(
360
);
angle_animation
->
setDuration
(
duration_
);
group
->
addAnimation
(
length_animation
);
group
->
addAnimation
(
offset_animation
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment