Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui-qml
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
cellframe
libdap-qt-ui-qml
Merge requests
!39
Features 2989
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Features 2989
features-2989
into
develop
Overview
0
Commits
8
Pipelines
0
Changes
4
Merged
andrey.daragan
requested to merge
features-2989
into
develop
5 years ago
Overview
0
Commits
8
Pipelines
0
Changes
2
Expand
[*] Temporary editing.
👍
0
👎
0
Merge request reports
Viewing commit
f5f3dcc2
Prev
Next
Show latest version
2 files
+
139
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
f5f3dcc2
[+] Add Busy Indicator to library
· f5f3dcc2
tatiana.novikova
authored
5 years ago
widgets/DapBusyIndicator.qml
0 → 100644
+
95
−
0
Options
import
QtQuick
2.2
import
QtQuick
.
Controls
2.0
DapBusyIndicatorForm
{
contentItem
:
Item
{
id
:
busyItem
width
:
busyIndicatorWidth
height
:
busyIndicatorHeight
Repeater
{
id
:
busyRepeater
model
:
busyPointNum
Rectangle
{
x
:
busyItem
.
width
/
2
-
width
/
2
y
:
busyItem
.
height
/
2
-
height
/
2
width
:
busyPointWidth
height
:
busyPointHeight
radius
:
busyPointRounding
opacity
:
1
Behavior
on
color
{
ColorAnimation
{
from
:
busyIndicatorDarkColor
duration
:
busyIndicatorDelay
*
busyPointNum
}
}
/*Behavior on scale
{
ScaleAnimator
{
from: busyPointMaxScale
to: busyPointMinScale
duration: busyIndicatorDelay * busyPointNum
}
}*/
transform
:
Rotation
{
origin.x
:
busyItem
.
width
/
2
-
width
origin.y
:
busyItem
.
height
/
2
-
height
angle
:
index
*
(
360
/
busyPointNum
)
}
Timer
{
id
:
reset
interval
:
busyIndicatorDelay
*
(
index
)
onTriggered
:
{
parent
.
opacity
=
1
parent
.
color
=
busyIndicatorDarkColor
parent
.
scale
=
busyPointMaxScale
reset2
.
start
()
}
}
Timer
{
id
:
reset2
interval
:
busyIndicatorDelay
onTriggered
:
{
parent
.
opacity
=
1
parent
.
color
=
busyIndicatorLightColor
parent
.
scale
=
busyPointMinScale
}
}
Timer
{
id
:
globalTimer
// for a complete cycle
interval
:
busyIndicatorDelay
*
busyPointNum
onTriggered
:
{
reset
.
start
()
}
triggeredOnStart
:
true
repeat
:
true
}
Component.onCompleted
:
{
globalTimer
.
start
()
}
}
}
}
}
Loading