Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
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
glacier-home
Commits
81ba16a2
Commit
81ba16a2
authored
Mar 23, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix battery indicator statuses.
parent
876ac1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
MainScreen.qml
src/qml/MainScreen.qml
+10
-10
No files found.
src/qml/MainScreen.qml
View file @
81ba16a2
...
...
@@ -68,18 +68,18 @@ Page {
onValueChanged
:
{
if
(
batterystatus
.
value
>
85
)
{
batteryimg
.
source
=
"
images/battery6.png
"
}
else
if
(
batterystatus
.
value
<=
70
)
{
batteryimg
.
source
=
"
images/battery5.png
"
}
else
if
(
batterystatus
.
value
<=
55
)
{
batteryimg
.
source
=
"
images/battery4.png
"
}
else
if
(
batterystatus
.
value
<=
40
)
{
batteryimg
.
source
=
"
images/battery3.png
"
}
else
if
(
batterystatus
.
value
<=
25
)
{
batteryimg
.
source
=
"
images/battery2.png
"
}
else
if
(
batterystatus
.
value
<=
10
)
{
batteryimg
.
source
=
"
images/battery1.png
"
}
else
if
(
batterystatus
.
value
<=
5
)
{
batteryimg
.
source
=
"
images/battery0.png
"
}
else
if
(
batterystatus
.
value
<=
10
)
{
batteryimg
.
source
=
"
images/battery1.png
"
}
else
if
(
batterystatus
.
value
<=
25
)
{
batteryimg
.
source
=
"
images/battery2.png
"
}
else
if
(
batterystatus
.
value
<=
40
)
{
batteryimg
.
source
=
"
images/battery3.png
"
}
else
if
(
batterystatus
.
value
<=
65
)
{
batteryimg
.
source
=
"
images/battery4.png
"
}
else
if
(
batterystatus
.
value
<=
80
)
{
batteryimg
.
source
=
"
images/battery5.png
"
}
batterylbl
.
text
=
batterystatus
.
value
+
"
%
"
}
...
...
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