summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-08-24 14:18:20 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-28 00:33:34 +0200
commite4ae48b67511ec09ae0c1b8cb52ef20ae7a463d8 (patch)
treec3fd093cb81c2a365712ec8c2f43fcd8d64ed8ad
parent2750ad7f862cedc7600637c442eea0caf29b1fd8 (diff)
Make sensor explorer example againv5.0.0-beta1
In QML it is now no longer allowed to override signals with a new signal that has the same name. In this case, the property change notification signal was overridden. Turns out that is not needed anyway here. Change-Id: I7e0a3f00098867dfb98273f264cc8dddd15cfaec Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
-rw-r--r--examples/sensors/sensor_explorer/PropertyList.qml3
-rw-r--r--examples/sensors/sensor_explorer/SensorList.qml3
2 files changed, 0 insertions, 6 deletions
diff --git a/examples/sensors/sensor_explorer/PropertyList.qml b/examples/sensors/sensor_explorer/PropertyList.qml
index 846c4cca..b180d620 100644
--- a/examples/sensors/sensor_explorer/PropertyList.qml
+++ b/examples/sensors/sensor_explorer/PropertyList.qml
@@ -48,13 +48,11 @@ Rectangle {
color: "transparent"
property PropertyInfo selectedItem: null;
- signal selectedItemChanged();
property alias listmodel: itemList.model
onListmodelChanged: {
itemList.currentIndex = -1;
selectedItem = null;
- selectedItemChanged();
}
Rectangle {
@@ -121,7 +119,6 @@ Rectangle {
onClicked: {
itemList.currentIndex = index;
selectedItem = model.modelData;
- selectedItemChanged();
}
}
}
diff --git a/examples/sensors/sensor_explorer/SensorList.qml b/examples/sensors/sensor_explorer/SensorList.qml
index da157378..7369a99f 100644
--- a/examples/sensors/sensor_explorer/SensorList.qml
+++ b/examples/sensors/sensor_explorer/SensorList.qml
@@ -48,14 +48,12 @@ Rectangle {
color: "transparent"
property SensorItem selectedItem: null;
- signal selectedItemChanged();
property alias title: labelTitle.text
property alias listmodel: itemList.model
onListmodelChanged: {
itemList.currentIndex = -1;
selectedItem = null;
- selectedItemChanged();
}
Text {
@@ -140,7 +138,6 @@ Rectangle {
onClicked: {
itemList.currentIndex = index;
selectedItem = model.modelData;
- selectedItemChanged();
}
}
}