diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-08-24 14:18:20 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 00:33:34 +0200 |
commit | e4ae48b67511ec09ae0c1b8cb52ef20ae7a463d8 (patch) | |
tree | c3fd093cb81c2a365712ec8c2f43fcd8d64ed8ad /examples | |
parent | 2750ad7f862cedc7600637c442eea0caf29b1fd8 (diff) | |
download | qtsensors-e4ae48b67511ec09ae0c1b8cb52ef20ae7a463d8.tar.gz |
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>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sensors/sensor_explorer/PropertyList.qml | 3 | ||||
-rw-r--r-- | examples/sensors/sensor_explorer/SensorList.qml | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/examples/sensors/sensor_explorer/PropertyList.qml b/examples/sensors/sensor_explorer/PropertyList.qml index 846c4cc..b180d62 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 da15737..7369a99 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(); } } } |