diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2012-04-10 20:19:34 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-11 03:31:52 +0200 |
commit | 8484b0ff9c40fe70cdfc17bf74b0a5be93d674de (patch) | |
tree | 2ba877c627c1279fd0e558dc736c8fdec4440906 /src/imports/multimedia/qdeclarativeradio.cpp | |
parent | 9b162f98440c00dcc0ee4d3b80970a9dc8dc766c (diff) |
Fix a number of doc errors and warnings.
* Document a few missing classes/functions/methods
* Fix a number of QML snippets that wouldn't work as standalone snippets
* Add files to .pro so they show up in Creator..
Still the mysterious lack of controls dir documentation persists :/
Change-Id: I57162371a4d966e4db5bdb1b71d1baf9c0ca57c3
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'src/imports/multimedia/qdeclarativeradio.cpp')
-rw-r--r-- | src/imports/multimedia/qdeclarativeradio.cpp | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/src/imports/multimedia/qdeclarativeradio.cpp b/src/imports/multimedia/qdeclarativeradio.cpp index 1f2a62c3a..cf9e2008b 100644 --- a/src/imports/multimedia/qdeclarativeradio.cpp +++ b/src/imports/multimedia/qdeclarativeradio.cpp @@ -419,34 +419,39 @@ void QDeclarativeRadio::scanUp() and if the user presses a station, the radio is tuned to this station. \qml - Radio { - id: radio - onStationFound: radioStations.append({"frequency": frequency, "stationId": stationId}) - } + Item { + width: 640 + height: 360 - ListModel { - id: radioStations - } + Radio { + id: radio + onStationFound: radioStations.append({"frequency": frequency, "stationId": stationId}) + } - ListView { - model: radioStations - delegate: Rectangle { - MouseArea { - anchors.fill: parent - onClicked: radio.frequency = frequency - } + ListModel { + id: radioStations + } - Text { - anchors.fill: parent - text: stationId + ListView { + model: radioStations + delegate: Rectangle { + MouseArea { + anchors.fill: parent + onClicked: radio.frequency = frequency + } + + Text { + anchors.fill: parent + text: stationId + } } - } - } + } - Rectangle { - MouseArea { - anchors.fill: parent - onClicked: radio.searchAllStations(Radio.SearchGetStationId) + Rectangle { + MouseArea { + anchors.fill: parent + onClicked: radio.searchAllStations(Radio.SearchGetStationId) + } } } \endqml |