QMLVideo Example visual update
Task-number: QTBUG-36287 Change-Id: I797a995c2ccd6f6fec40fbf50f93e297ae15a9b1 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
@@ -56,12 +56,12 @@ Scene {
|
||||
bottom: decreaseButton.top
|
||||
margins: parent.margins
|
||||
}
|
||||
width: 90
|
||||
width: Math.max(parent.width, parent.height) / 10
|
||||
height: root.buttonHeight
|
||||
text: "Increase"
|
||||
onClicked: {
|
||||
var video = content.contentItem()
|
||||
video.playbackRate = video.playbackRate + delta
|
||||
video.playbackRate += delta
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,12 +72,12 @@ Scene {
|
||||
verticalCenter: parent.verticalCenter
|
||||
margins: parent.margins
|
||||
}
|
||||
width: 90
|
||||
width: Math.max(parent.width, parent.height) / 10
|
||||
height: root.buttonHeight
|
||||
text: "Decrease"
|
||||
onClicked: {
|
||||
var video = content.contentItem()
|
||||
video.playbackRate = video.playbackRate - delta
|
||||
video.playbackRate -= delta
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ Scene {
|
||||
verticalCenter: parent.verticalCenter
|
||||
margins: parent.margins
|
||||
}
|
||||
width: 50
|
||||
width: Math.max(parent.width, parent.height) / 25
|
||||
height: root.buttonHeight
|
||||
enabled: false
|
||||
text: Math.round(10 * content.contentItem().playbackRate) / 10
|
||||
|
||||
Reference in New Issue
Block a user