QMLVideo Example visual update
Task-number: QTBUG-36287 Change-Id: I797a995c2ccd6f6fec40fbf50f93e297ae15a9b1 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
@@ -54,16 +54,16 @@ Scene {
|
||||
verticalCenter: parent.verticalCenter
|
||||
margins: parent.margins
|
||||
}
|
||||
width: 150
|
||||
width: Math.max(parent.width, parent.height) / 5
|
||||
height: root.buttonHeight
|
||||
text: "PreserveAspectFit"
|
||||
onClicked: {
|
||||
if (!content.dummy) {
|
||||
var video = content.contentItem()
|
||||
if (video.fillMode == VideoOutput.Stretch) {
|
||||
if (video.fillMode === VideoOutput.Stretch) {
|
||||
video.fillMode = VideoOutput.PreserveAspectFit
|
||||
text = "PreserveAspectFit"
|
||||
} else if (video.fillMode == VideoOutput.PreserveAspectFit) {
|
||||
} else if (video.fillMode === VideoOutput.PreserveAspectFit) {
|
||||
video.fillMode = VideoOutput.PreserveAspectCrop
|
||||
text = "PreserveAspectCrop"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user