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
a6504686
Commit
a6504686
authored
Jun 17, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[statusbar] Icon values for different wifi signal strengths.
parent
4b3155db
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 @
a6504686
...
@@ -24,6 +24,7 @@ Requires: nemo-qml-plugin-time-qt5
...
@@ -24,6 +24,7 @@ Requires: nemo-qml-plugin-time-qt5
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtquickcontrols-nemo
Requires: qt5-qtquickcontrols-nemo
Requires: nemo-qml-plugin-contextkit-qt5
Requires: nemo-qml-plugin-contextkit-qt5
Requires: connman-qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
...
...
src/qml/Statusbar.qml
View file @
a6504686
...
@@ -32,6 +32,7 @@ import QtQuick 2.1
...
@@ -32,6 +32,7 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
org
.
freedesktop
.
contextkit
1.0
import
org
.
freedesktop
.
contextkit
1.0
import
MeeGo
.
Connman
0.2
Item
{
Item
{
id
:
root
id
:
root
...
@@ -64,6 +65,24 @@ Item {
...
@@ -64,6 +65,24 @@ Item {
key
:
"
Cellular.RegistrationStatus
"
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
{
Row
{
spacing
:
16
spacing
:
16
StatusbarItem
{
StatusbarItem
{
...
@@ -71,7 +90,23 @@ Item {
...
@@ -71,7 +90,23 @@ Item {
}
}
StatusbarItem
{
StatusbarItem
{
source
:
{
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
{
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