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
e5f94796
Commit
e5f94796
authored
Mar 16, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Battery level display
parent
0d485740
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
lipstick-glacier-home-qt5.spec
rpm/lipstick-glacier-home-qt5.spec
+2
-0
lipstick-glacier-home-qt5.yaml
rpm/lipstick-glacier-home-qt5.yaml
+2
-0
MainScreen.qml
src/qml/MainScreen.qml
+42
-1
No files found.
rpm/lipstick-glacier-home-qt5.spec
View file @
e5f94796
...
...
@@ -23,6 +23,8 @@ Requires: nemo-qml-plugin-configuration-qt5
Requires: nemo-qml-plugin-time-qt5
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtquickcontrols-nemo
Requires: nemo-qml-plugin-contextkit-qt5
Requires: statefs-provider-bme
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
...
...
rpm/lipstick-glacier-home-qt5.yaml
View file @
e5f94796
...
...
@@ -16,6 +16,8 @@ Requires:
-
nemo-qml-plugin-time-qt5
-
qt5-qtdeclarative-import-window2
# TODO: components dep?
-
qt5-qtquickcontrols-nemo
-
nemo-qml-plugin-contextkit-qt5
-
statefs-provider-bme
PkgConfigBR
:
-
Qt5Core
-
Qt5Quick
...
...
src/qml/MainScreen.qml
View file @
e5f94796
...
...
@@ -36,6 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
import
QtQuick
.
Window
2.1
import
org
.
nemomobile
.
time
1.0
import
org
.
nemomobile
.
configuration
1.0
import
org
.
freedesktop
.
contextkit
1.0
Page
{
...
...
@@ -62,7 +63,47 @@ Page {
}
else
{
Qt
.
quit
();
}
}
}
orientation
:
Qt
.
PortraitOrientation
Connections
{
target
:
batterystatus
onValueChanged
:
{
batterylbl
.
text
=
"
Battery status:
"
+
batterystatus
.
value
}
}
Connections
{
target
:
onbattery
onValueChanged
:
{
if
(
onbattery
.
value
)
{
charging
.
text
=
"
On battery
"
}
else
{
charging
.
text
=
"
On wall
"
}
}
}
ContextProperty
{
id
:
batterystatus
key
:
"
Battery.ChargePercentage
"
value
:
"
100
"
}
ContextProperty
{
id
:
onbattery
key
:
"
Battery.OnBattery
"
}
tools
:
Item
{
Label
{
id
:
batterylbl
font.pointSize
:
8
color
:
"
black
"
}
Label
{
id
:
charging
font.pointSize
:
8
color
:
"
black
"
anchors.right
:
batterylbl
.
left
}
}
Pager
{
id
:
pager
...
...
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