summaryrefslogtreecommitdiffstats
path: root/examples/sysinfo/dialog.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-03-28 11:12:38 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-03-28 11:12:38 +1000
commit39a9d2f04cabc2476b270273e51154df0e32c912 (patch)
treebd2824ee5c7398dfe397b3abd9489d37f6e2f801 /examples/sysinfo/dialog.cpp
parent1955fc206cf8de7ae31edde9347a2a87e5b5b715 (diff)
add cellIdChanged to example
Diffstat (limited to 'examples/sysinfo/dialog.cpp')
-rw-r--r--examples/sysinfo/dialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/sysinfo/dialog.cpp b/examples/sysinfo/dialog.cpp
index 469f4d68de..cf6c60af05 100644
--- a/examples/sysinfo/dialog.cpp
+++ b/examples/sysinfo/dialog.cpp
@@ -391,6 +391,8 @@ void Dialog::setupNetwork()
netStatusComboActivated((int)ni->currentMode());
cellIdLabel->setText(QString::number(ni->cellId()));
+ connect(ni,SIGNAL(cellIdChanged(int)),this,SLOT(cellIdChanged(int)));
+
locationAreaCodeLabel->setText(QString::number(ni->locationAreaCode()));
currentMCCLabel->setText(ni->currentMobileCountryCode());
currentMNCLabel->setText(ni->currentMobileNetworkCode());
@@ -1238,3 +1240,8 @@ void Dialog::lockStatusChanged(QSystemDeviceInfo::LockTypeFlags locktype)
}
}
+void Dialog::cellIdChanged(int id)
+{
+ cellIdLabel->setText(QString::number(id));
+}
+