diff options
author | Jonas Rabbe <jonas.rabbe@nokia.com> | 2011-09-01 07:44:46 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-01 02:42:57 +0200 |
commit | a6e2cbb83ce78940a9cdbac44d6080a8e9cad21f (patch) | |
tree | d868d28172a62d901ec4e34b1d7f2cc20feccae7 /examples | |
parent | 6781063df647fcba3dd5ca6fdff8631579acb495 (diff) |
Added tune up and down methods, and changed name of scan methods.
Instead of requiring developers using the radio API to read the
frequency step, adding it to the current frequency and setting the
new frequency, there has been added tuneUp and tuneDown methods.
Also, the searchBackward and searchForward methods have been renamed
to scanDown and scanUp which seem more logical. And cancelSearch
has become cancelScan.
Change-Id: Ib9ff61c0f58163039f41f045037cb9a11b37a59e
Reviewed-on: http://codereview.qt.nokia.com/4013
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative-radio/view.qml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/examples/declarative-radio/view.qml b/examples/declarative-radio/view.qml index cb7623497..4e2882d45 100644 --- a/examples/declarative-radio/view.qml +++ b/examples/declarative-radio/view.qml @@ -120,7 +120,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: radio.searchBackward(); + onClicked: radio.scanDown(); } } Rectangle { @@ -141,11 +141,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: { - var f = radio.frequency; - f = f - radio.frequencyStep; - radio.setFrequency(f); - } + onClicked: radio.tuneDown(); } } Rectangle { @@ -166,11 +162,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: { - var f = radio.frequency; - f = f + radio.frequencyStep; - radio.setFrequency(f); - } + onClicked: radio.tuneUp(); } } Rectangle { @@ -191,7 +183,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: radio.searchForward(); + onClicked: radio.scanUp(); } } } |