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
bc9b5a98
Commit
bc9b5a98
authored
Jun 17, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16 from locusf/wifi_statusbar
[statusbar] Icon values for different wifi signal strengths.
parents
5d9bade3
a6504686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
lipstick-glacier-home-qt5.spec
rpm/lipstick-glacier-home-qt5.spec
+1
-0
Statusbar.qml
src/qml/Statusbar.qml
+36
-1
No files found.
rpm/lipstick-glacier-home-qt5.spec
View file @
bc9b5a98
...
...
@@ -24,6 +24,7 @@ Requires: nemo-qml-plugin-time-qt5
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtquickcontrols-nemo
Requires: nemo-qml-plugin-contextkit-qt5
Requires: connman-qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
...
...
src/qml/Statusbar.qml
View file @
bc9b5a98
...
...
@@ -32,6 +32,7 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
org
.
freedesktop
.
contextkit
1.0
import
MeeGo
.
Connman
0.2
Item
{
id
:
root
...
...
@@ -64,6 +65,24 @@ Item {
key
:
"
Cellular.RegistrationStatus
"
}
NetworkManager
{
id
:
networkManager
function
updateTechnologies
()
{
if
(
available
&&
technologiesEnabled
)
{
wlan
.
path
=
networkManager
.
technologyPathForType
(
"
wifi
"
)
}
}
onAvailableChanged
:
updateTechnologies
()
onTechnologiesEnabledChanged
:
updateTechnologies
()
onTechnologiesChanged
:
updateTechnologies
()
}
NetworkTechnology
{
id
:
wlan
}
Row
{
spacing
:
16
StatusbarItem
{
...
...
@@ -71,7 +90,23 @@ Item {
}
StatusbarItem
{
source
:
{
return
"
image://theme/icon_wifi_normal1
"
if
(
wlan
.
connected
)
{
if
(
networkManager
.
defaultRoute
.
type
!==
"
wifi
"
)
return
"
image://theme/icon_wifi_0
"
if
(
networkManager
.
defaultRoute
.
strength
>=
59
)
{
return
"
image://theme/icon_wifi_normal4
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
55
)
{
return
"
image://theme/icon_wifi_normal3
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
50
)
{
return
"
image://theme/icon_wifi_normal2
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
40
)
{
return
"
image://theme/icon_wifi_normal1
"
}
else
{
return
"
image://theme/icon_wifi_0
"
}
}
else
{
return
"
image://theme/icon_wifi_0
"
}
}
}
StatusbarItem
{
...
...
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