summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/client_api_examples/qml/main.qml')
-rw-r--r--DOCS/client_api_examples/qml/main.qml33
1 files changed, 23 insertions, 10 deletions
diff --git a/DOCS/client_api_examples/qml/main.qml b/DOCS/client_api_examples/qml/main.qml
index 4c07351d32..672f8680b1 100644
--- a/DOCS/client_api_examples/qml/main.qml
+++ b/DOCS/client_api_examples/qml/main.qml
@@ -41,18 +41,31 @@ Item {
Click to load ../../../test.mkv"
}
- CheckBox {
- id: checkbox
- anchors.margins: 10
- // Heavily filtered means good, right?
- text: "Make video looks like on a Smart TV"
- onClicked: {
- if (checkbox.checked) {
- renderer.command(["vo_cmdline", "lscale=sharpen3:lparam1=1.0"])
- } else {
- renderer.command(["vo_cmdline", ""])
+ // 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", "lscale=sharpen3:lparam1=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)
+ }
}
}
}