Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QML_Benchmark
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Daniel Smith
QML_Benchmark
Commits
14c26605
Commit
14c26605
authored
Jan 09, 2019
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loop animations. Remove user conf files. Fix texture extension logic.
parent
fe718255
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
872 deletions
+38
-872
Heavy_QML_example.pro.user
Heavy_QML_example.pro.user
+0
-837
QUItBattery.qml
QUItBattery.qml
+1
-1
main.qml
main.qml
+37
-19
qtquickcontrols2.conf
qtquickcontrols2.conf
+0
-15
No files found.
Heavy_QML_example.pro.user
deleted
100644 → 0
View file @
fe718255
This diff is collapsed.
Click to expand it.
QUItBattery.qml
View file @
14c26605
...
...
@@ -18,7 +18,7 @@ Item {
// Battery liquid rotation
property
real
__bRotation
:
Math
.
max
(
-
maxLiquidRotation
,
Math
.
min
(
root
.
rotation
+
90
,
maxLiquidRotation
))
property
string
textureExtension
:
Qt
.
application
.
version
===
"
5.6
"
?
"
.png
"
:
"
.ktx
"
property
string
textureExtension
:
(
Qt
.
application
.
version
%
5
)
*
10
<
11
?
"
.png
"
:
"
.ktx
"
width
:
batteryImage
.
width
height
:
batteryImage
.
height
/
1.8
...
...
main.qml
View file @
14c26605
...
...
@@ -11,8 +11,8 @@ Window {
id
:
mainView
visible
:
true
property
int
pixelSize
:
mainView
.
height
/
8
property
string
textureExtension
:
Qt
.
application
.
version
===
"
5.6
"
||
"
5.9
"
?
"
.png
"
:
"
.ktx
"
property
int
pixelSize
:
height
/
8
property
string
textureExtension
:
(
Qt
.
application
.
version
%
5
)
*
10
<
11
?
"
.png
"
:
"
.ktx
"
function
fontSource
()
{
...
...
@@ -62,7 +62,12 @@ Window {
source
:
background
radius
:
64
Behavior
on
radius
{
NumberAnimation
{
duration
:
30000
}
NumberAnimation
{
from
:
0
duration
:
30000
loops
:
Animation
.
Infinite
}
}
}
HueSaturation
{
...
...
@@ -71,11 +76,15 @@ Window {
hue
:
-
1.0
saturation
:
0.5
lightness
:
-
0.1
NumberAnimation
on
hue
{
from
:
-
1.0
to
:
1
duration
:
30000
}
SequentialAnimation
on
hue
{
running
:
true
loops
:
Animation
.
Infinite
NumberAnimation
{
from
:
-
1.0
to
:
1
duration
:
30000
}
}
}
...
...
@@ -89,17 +98,26 @@ Window {
renderType
:
Text
.
QtRendering
opacity
:
0.1
ColorAnimation
on
color
{
from
:
"
black
"
to
:
"
#42f450
"
duration
:
30000
}
OpacityAnimator
on
opacity
{
from
:
0.1
to
:
0.5
SequentialAnimation
on
color
{
running
:
true
duration
:
30000
}
loops
:
Animation
.
Infinite
ColorAnimation
{
from
:
"
black
"
to
:
"
#42f450
"
duration
:
30000
}
}
SequentialAnimation
on
opacity
{
running
:
true
loops
:
Animation
.
Infinite
OpacityAnimator
{
from
:
0.1
to
:
0.5
running
:
true
duration
:
30000
}
}
}
Text
{
...
...
@@ -147,8 +165,8 @@ Window {
// Main visiable elements
Column
{
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
90
Row
{
QUItBattery
{
...
...
qtquickcontrols2.conf
deleted
100644 → 0
View file @
fe718255
This
file
can
be
edited
to
change
the
style
of
the
application
;
See
Styling
Qt
Quick
Controls
2
in
the
documentation
for
details
:
;
http
://
doc
.
qt
.
io
/
qt
-
5
/
qtquickcontrols2
-
styles
.
html
[
Controls
]
Style
=
Default
[
Universal
]
Theme
=
Light
;
Accent
=
Steel
[
Material
]
Theme
=
Light
;
Accent
=
BlueGrey
;
Primary
=
BlueGray
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