diff options
author | wm4 <wm4@nowhere> | 2016-03-10 21:47:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-10 21:47:51 +0100 |
commit | 9bc5c020de87fdffc40c9103992b26fe80cfe944 (patch) | |
tree | 1a31520041e5ac021fd351f2a6a798dc5c3a927b /DOCS/client_api_examples/qml/main.qml | |
parent | d8b27ee4de4e26d594855960a4421b99db9e76ea (diff) | |
download | mpv-9bc5c020de87fdffc40c9103992b26fe80cfe944.tar.bz2 mpv-9bc5c020de87fdffc40c9103992b26fe80cfe944.tar.xz |
DOCS: remove client API examples
Moved to: https://github.com/mpv-player/mpv-examples
Diffstat (limited to 'DOCS/client_api_examples/qml/main.qml')
-rw-r--r-- | DOCS/client_api_examples/qml/main.qml | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/DOCS/client_api_examples/qml/main.qml b/DOCS/client_api_examples/qml/main.qml deleted file mode 100644 index ec06790e86..0000000000 --- a/DOCS/client_api_examples/qml/main.qml +++ /dev/null @@ -1,71 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Controls 1.0 - -import mpvtest 1.0 - -Item { - width: 1280 - height: 720 - - MpvObject { - id: renderer - anchors.fill: parent - - MouseArea { - anchors.fill: parent - onClicked: renderer.command(["loadfile", "../../../test.mkv"]) - } - } - - Rectangle { - id: labelFrame - anchors.margins: -50 - radius: 5 - color: "white" - border.color: "black" - opacity: 0.8 - anchors.fill: box - } - - Row { - id: box - anchors.bottom: renderer.bottom - anchors.left: renderer.left - anchors.right: renderer.right - anchors.margins: 100 - - Text { - anchors.margins: 10 - wrapMode: Text.WordWrap - text: "QtQuick and mpv are both rendering stuff.\n - Click to load ../../../test.mkv" - } - - // Don't take these controls too seriously. They're for testing. - Column { - CheckBox { - id: checkbox - anchors.margins: 10 - // Heavily filtered means good, right? - text: "Make video look like on a Smart TV" - onClicked: { - if (checkbox.checked) { - renderer.command(["vo_cmdline", "sharpen=5.0"]) - } else { - renderer.command(["vo_cmdline", ""]) - } - } - } - Slider { - id: slider - anchors.margins: 10 - anchors.left: checkbox.left - anchors.right: checkbox.right - minimumValue: -100 - maximumValue: 100 - value: 0 - onValueChanged: renderer.setProperty("gamma", slider.value | 0) - } - } - } -} |