summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/declarative-radio
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-05-31 20:41:43 +0200
committerChristian Strømme <christian.stromme@qt.io>2020-06-10 18:29:22 +0000
commitba2f42c2548a5175126497d2d69eef95c2a849ba (patch)
tree0570570b5c997186b74396ddb6e9cd330209e859 /examples/multimedia/declarative-radio
parent3d909ba8ac0f43af6d70830a5c95df3e741f1221 (diff)
Remove Radio support
Fixes: QTBUG-84592 Change-Id: I3b9e51689fd542c35cb57cf6c51a141aec3034df Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'examples/multimedia/declarative-radio')
-rw-r--r--examples/multimedia/declarative-radio/Button.qml81
-rw-r--r--examples/multimedia/declarative-radio/declarative-radio.pro9
-rw-r--r--examples/multimedia/declarative-radio/declarative-radio.qrc7
-rw-r--r--examples/multimedia/declarative-radio/doc/images/declarative-radio-example.pngbin9809 -> 0 bytes
-rw-r--r--examples/multimedia/declarative-radio/doc/src/declarative-radio.qdoc40
-rw-r--r--examples/multimedia/declarative-radio/main.cpp69
-rw-r--r--examples/multimedia/declarative-radio/view.qml143
7 files changed, 0 insertions, 349 deletions
diff --git a/examples/multimedia/declarative-radio/Button.qml b/examples/multimedia/declarative-radio/Button.qml
deleted file mode 100644
index c579795e7..000000000
--- a/examples/multimedia/declarative-radio/Button.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: button
- border.color: "black"
- border.width: 1
- radius: 5
-
- property string text
- signal clicked
-
- width: d.buttonWidth
- height: d.buttonHeight
-
- anchors {
- margins: root.margins
- top: parent.top
- }
-
- Text {
- anchors.fill: parent
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignHCenter
- text: button.text
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: button.clicked();
- }
-}
diff --git a/examples/multimedia/declarative-radio/declarative-radio.pro b/examples/multimedia/declarative-radio/declarative-radio.pro
deleted file mode 100644
index 68942fa3f..000000000
--- a/examples/multimedia/declarative-radio/declarative-radio.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-QT += qml quick multimedia
-
-SOURCES += main.cpp
-RESOURCES += declarative-radio.qrc
-
-EXAMPLE_FILES += view.qml
-
-target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/declarative-radio
-INSTALLS += target
diff --git a/examples/multimedia/declarative-radio/declarative-radio.qrc b/examples/multimedia/declarative-radio/declarative-radio.qrc
deleted file mode 100644
index 0f7859d78..000000000
--- a/examples/multimedia/declarative-radio/declarative-radio.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
-<qresource>
-<file>view.qml</file>
-<file>Button.qml</file>
-</qresource>
-</RCC>
-
diff --git a/examples/multimedia/declarative-radio/doc/images/declarative-radio-example.png b/examples/multimedia/declarative-radio/doc/images/declarative-radio-example.png
deleted file mode 100644
index 882180b21..000000000
--- a/examples/multimedia/declarative-radio/doc/images/declarative-radio-example.png
+++ /dev/null
Binary files differ
diff --git a/examples/multimedia/declarative-radio/doc/src/declarative-radio.qdoc b/examples/multimedia/declarative-radio/doc/src/declarative-radio.qdoc
deleted file mode 100644
index ea0e33da9..000000000
--- a/examples/multimedia/declarative-radio/doc/src/declarative-radio.qdoc
+++ /dev/null
@@ -1,40 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example multimedia/declarative-radio
- \title Declarative Radio Example
- \brief Demonstrates using the Radio QML type from Qt Multimedia.
- \ingroup multimedia_examples
-
- This examples uses the \l{Qt Multimedia} \l Radio QML type to list the
- available channels on the FM frequency.
-
- \image declarative-radio-example.png
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/multimedia/declarative-radio/main.cpp b/examples/multimedia/declarative-radio/main.cpp
deleted file mode 100644
index 3ed6f1950..000000000
--- a/examples/multimedia/declarative-radio/main.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
- **
- ** Copyright (C) 2017 The Qt Company Ltd.
- ** Contact: https://www.qt.io/licensing/
- **
- ** This file is part of the examples of the Qt Toolkit.
- **
- ** $QT_BEGIN_LICENSE:BSD$
- ** Commercial License Usage
- ** Licensees holding valid commercial Qt licenses may use this file in
- ** accordance with the commercial license agreement provided with the
- ** Software or, alternatively, in accordance with the terms contained in
- ** a written agreement between you and The Qt Company. For licensing terms
- ** and conditions see https://www.qt.io/terms-conditions. For further
- ** information use the contact form at https://www.qt.io/contact-us.
- **
- ** BSD License Usage
- ** Alternatively, you may use this file under the terms of the BSD license
- ** as follows:
- **
- ** "Redistribution and use in source and binary forms, with or without
- ** modification, are permitted provided that the following conditions are
- ** met:
- ** * Redistributions of source code must retain the above copyright
- ** notice, this list of conditions and the following disclaimer.
- ** * Redistributions in binary form must reproduce the above copyright
- ** notice, this list of conditions and the following disclaimer in
- ** the documentation and/or other materials provided with the
- ** distribution.
- ** * Neither the name of The Qt Company Ltd nor the names of its
- ** contributors may be used to endorse or promote products derived
- ** from this software without specific prior written permission.
- **
- **
- ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
- **
- ** $QT_END_LICENSE$
- **
- ****************************************************************************/
-
-#include <QGuiApplication>
-
-#include <qqml.h>
-#include <QtQuick/qquickview.h>
-
-
-int main(int argc, char ** argv)
-{
- QGuiApplication app(argc, argv);
-
- QQuickView view;
-
- view.setSource(QUrl("qrc:/view.qml"));
- view.setMinimumSize(QSize(400, 100));
- view.show();
-
- return app.exec();
-}
-
diff --git a/examples/multimedia/declarative-radio/view.qml b/examples/multimedia/declarative-radio/view.qml
deleted file mode 100644
index ab173a737..000000000
--- a/examples/multimedia/declarative-radio/view.qml
+++ /dev/null
@@ -1,143 +0,0 @@
-/****************************************************************************
- **
- ** Copyright (C) 2017 The Qt Company Ltd.
- ** Contact: https://www.qt.io/licensing/
- **
- ** This file is part of the examples of the Qt Toolkit.
- **
- ** $QT_BEGIN_LICENSE:BSD$
- ** Commercial License Usage
- ** Licensees holding valid commercial Qt licenses may use this file in
- ** accordance with the commercial license agreement provided with the
- ** Software or, alternatively, in accordance with the terms contained in
- ** a written agreement between you and The Qt Company. For licensing terms
- ** and conditions see https://www.qt.io/terms-conditions. For further
- ** information use the contact form at https://www.qt.io/contact-us.
- **
- ** BSD License Usage
- ** Alternatively, you may use this file under the terms of the BSD license
- ** as follows:
- **
- ** "Redistribution and use in source and binary forms, with or without
- ** modification, are permitted provided that the following conditions are
- ** met:
- ** * Redistributions of source code must retain the above copyright
- ** notice, this list of conditions and the following disclaimer.
- ** * Redistributions in binary form must reproduce the above copyright
- ** notice, this list of conditions and the following disclaimer in
- ** the documentation and/or other materials provided with the
- ** distribution.
- ** * Neither the name of The Qt Company Ltd nor the names of its
- ** contributors may be used to endorse or promote products derived
- ** from this software without specific prior written permission.
- **
- **
- ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
- **
- ** $QT_END_LICENSE$
- **
- ****************************************************************************/
-
-import QtQuick 2.0
-import QtMultimedia 5.0
-
-Rectangle {
- anchors.fill: parent
- id: root
- property int margins: 5
- property int spacing: 10
-
- QtObject {
- id: d
- property int buttonHeight: root.height > root.width ? root.width / 3 : root.height / 3
- property int buttonWidth: (root.width - spacing * 4) / 4
- }
-
- Radio {
- id: radio
- band: Radio.FM
- }
-
- Column {
- anchors.fill: parent
- anchors.margins: root.margins
-
- Rectangle {
- color: root.color
- width: parent.width
- height: root.height - d.buttonHeight - 40
-
- Text {
- id: freq
- verticalAlignment: Text.AlignVCenter
- text: "" + radio.frequency / 1000 + " kHz"
- anchors {
- bottom: parent.bottom
- margins: root.margins
- }
- }
- Text {
- id: sig
- anchors {
- bottom: parent.bottom
- right: parent.right
- margins: root.margins
-
- }
-
- verticalAlignment: Text.AlignVCenter
- text: (radio.availability == Radio.Available ? "No Signal " : "No Radio Found")
- }
- }
-
- Row {
- spacing: 5
-
- Rectangle {
- width: root.width - 10
- height: 20
- color: "black"
-
- Rectangle {
- width: 5
- height: 20
- color: "red"
-
- y: 0
- x: (parent.width - 5) * ((radio.frequency - radio.minimumFrequency) / (radio.maximumFrequency -
- radio.minimumFrequency))
- }
- }
- }
- Row {
- spacing: root.spacing
- Button {
- text: "Scan Down"
- onClicked: radio.scanDown()
- }
- Button {
- text: "Freq Down"
- onClicked: radio.tuneDown()
- }
- Button {
- text: "Freq Up"
- onClicked: radio.tuneUp()
- }
- Button {
- text: "Scan Up"
- onClicked: radio.scanUp()
- }
- }
- }
-}
-