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
9ab12e80
Commit
9ab12e80
authored
Jun 17, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[statusbar] Technologies for cellular connections.
parent
bc9b5a98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
Statusbar.qml
src/qml/Statusbar.qml
+34
-2
No files found.
src/qml/Statusbar.qml
View file @
9ab12e80
...
...
@@ -72,22 +72,54 @@ Item {
wlan
.
path
=
networkManager
.
technologyPathForType
(
"
wifi
"
)
}
}
onAvailableChanged
:
updateTechnologies
()
onTechnologiesEnabledChanged
:
updateTechnologies
()
onTechnologiesChanged
:
updateTechnologies
()
}
NetworkTechnology
{
id
:
wlan
}
ContextProperty
{
id
:
cellularNetworkName
key
:
"
Cellular.NetworkName
"
}
ContextProperty
{
id
:
cellularDataTechnology
key
:
"
Cellular.DataTechnology
"
}
Row
{
spacing
:
16
StatusbarItem
{
source
:
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
}
StatusbarItem
{
Label
{
id
:
tech
width
:
16
height
:
16
font.pointSize
:
6
font.bold
:
true
text
:
cellularNetworkName
.
value
.
toUpperCase
()
}
Label
{
anchors.top
:
tech
.
bottom
anchors.topMargin
:
4
width
:
16
height
:
16
font.pointSize
:
6
text
:
{
var
techToG
=
{
gprs
:
"
2
"
,
egprs
:
"
2.5
"
,
umts
:
"
3
"
,
hspa
:
"
3.5
"
,
lte
:
"
4
"
}
return
techToG
[
cellularDataTechnology
.
value
]
+
"
G
"
}
}
}
StatusbarItem
{
source
:
{
if
(
wlan
.
connected
)
{
...
...
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