summaryrefslogtreecommitdiffstats
path: root/examples/declarative-systeminfo/network
diff options
context:
space:
mode:
authorAlex <qt-info@nokia.com>2011-03-15 15:21:39 +1000
committerAlex <qt-info@nokia.com>2011-03-15 15:21:39 +1000
commitaf4a599963503913d6e291114cd96b0539bb7e7e (patch)
treef86b75a723c57b4f70e0691f3523ce2715bca4ec /examples/declarative-systeminfo/network
parentf7fd92088cbb5d45cd2b24d5a0bcba5b47af15a1 (diff)
usemode property doesn't exist in QDeclarativeNetworkInfo
also streamlines the qml file a bit to avoid undefined strings Task-number:QTMOBILITY-1404
Diffstat (limited to 'examples/declarative-systeminfo/network')
-rw-r--r--examples/declarative-systeminfo/network/wifi.qml15
1 files changed, 4 insertions, 11 deletions
diff --git a/examples/declarative-systeminfo/network/wifi.qml b/examples/declarative-systeminfo/network/wifi.qml
index c083cca2f1..17e9ea8ff6 100644
--- a/examples/declarative-systeminfo/network/wifi.qml
+++ b/examples/declarative-systeminfo/network/wifi.qml
@@ -55,19 +55,14 @@ Rectangle {
NetworkInfo {
id: wlaninfo
- useMode: wlan.mode;
+ mode: wlan.mode;
property string img : getImage(networkStatus);
function getImage(newStatus) {
if(newStatus == "Connected") {
return "images/wlan.svg";
}
- if(newStatus == "Searching") {
- // return "images/wlan.svg";
- }
- if(newStatus == "No Network Available") {
- return "images/wlan-noavail.svg";
- }
+ return "images/wlan-noavail.svg";
}
onStatusChanged : {
@@ -136,16 +131,14 @@ Rectangle {
NetworkInfo {
id: ethinfo
- useMode: ethernet.mode;
+ mode: ethernet.mode;
property string img : getImage(networkStatus);
function getImage(newStatus) {
if(newStatus == "Connected") {
return "images/lan.svg";
}
- if(newStatus == "No Network Available") {
- return "images/lan-noavail.svg";
- }
+ return "images/lan-noavail.svg";
}
onStatusChanged : {