Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
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
NemoMobile
qtquickcontrols-nemo
Commits
ea3e9c68
Commit
ea3e9c68
authored
Jul 01, 2017
by
eekkelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add start() and stop(). Change durations to make spinner spin faster
parent
7cdef75f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
Spinner.qml
src/controls/Spinner.qml
+22
-11
No files found.
src/controls/Spinner.qml
View file @
ea3e9c68
...
...
@@ -35,6 +35,17 @@ import QtQuick.Controls.Nemo 1.0
Item
{
id
:
container
function
stop
()
{
if
(
state
==
"
enabled
"
)
{
state
=
""
}
}
function
start
()
{
if
(
state
!=
"
enabled
"
)
{
state
=
"
enabled
"
}
}
states
:
[
State
{
name
:
"
enabled
"
;
when
:
enabled
}
]
...
...
@@ -49,7 +60,7 @@ Item {
targets
:
[
circle0
,
circle1
,
circle2
,
circle3
]
property
:
"
opacity
"
to
:
1
duration
:
15
00
duration
:
7
00
}
PropertyAction
{
target
:
animations
;
property
:
"
running
"
;
value
:
true
}
}
...
...
@@ -64,13 +75,13 @@ Item {
targets
:
[
circle0
,
circle1
,
circle2
,
circle3
]
property
:
"
color
"
;
to
:
Theme
.
backgroundAccentColor
duration
:
5
00
duration
:
4
00
}
NumberAnimation
{
targets
:
[
circle0
,
circle1
,
circle2
,
circle3
]
property
:
"
opacity
"
to
:
0
duration
:
15
00
duration
:
7
00
}
}
}
...
...
@@ -140,13 +151,13 @@ Item {
target
:
circle0
property
:
"
color
"
to
:
Theme
.
accentColor
duration
:
5
00
duration
:
4
00
}
PropertyAnimation
{
target
:
circle3
property
:
"
color
"
to
:
Theme
.
backgroundAccentColor
duration
:
5
00
duration
:
4
00
}
}
...
...
@@ -155,13 +166,13 @@ Item {
target
:
circle1
property
:
"
color
"
to
:
Theme
.
accentColor
duration
:
5
00
duration
:
4
00
}
PropertyAnimation
{
target
:
circle0
property
:
"
color
"
to
:
Theme
.
backgroundAccentColor
duration
:
5
00
duration
:
4
00
}
}
...
...
@@ -170,13 +181,13 @@ Item {
target
:
circle2
property
:
"
color
"
to
:
Theme
.
accentColor
duration
:
5
00
duration
:
4
00
}
PropertyAnimation
{
target
:
circle1
property
:
"
color
"
to
:
Theme
.
backgroundAccentColor
duration
:
5
00
duration
:
4
00
}
}
...
...
@@ -185,13 +196,13 @@ Item {
target
:
circle3
property
:
"
color
"
to
:
Theme
.
accentColor
duration
:
5
00
duration
:
4
00
}
PropertyAnimation
{
target
:
circle2
property
:
"
color
"
to
:
Theme
.
backgroundAccentColor
duration
:
5
00
duration
:
4
00
}
}
}
...
...
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