Small refactorings to prepare for qt6

This commit is contained in:
Bart De Vries 2023-04-26 10:24:15 +02:00
parent c46d4f3959
commit cee5ed71fa
2 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,8 @@ Item {
anchors.fill: parent
source: root.imageSource
fillMode: root.imageFillMode
sourceSize.width: root.imageResize ? width * Screen.devicePixelRatio : undefined
sourceSize.height: root.imageResize ? height * Screen.devicePixelRatio : undefined
sourceSize.width: root.imageResize ? width * Screen.devicePixelRatio : 0
sourceSize.height: root.imageResize ? height * Screen.devicePixelRatio : 0
asynchronous: true
mipmap: root.mipmap
}

View File

@ -39,8 +39,8 @@ Controls.Menu {
}
}
onObjectAdded: playbackRateMenu.insertItem(index, object)
onObjectRemoved: playbackRateMenu.removeItem(object)
onObjectAdded: (index, object) => playbackRateMenu.insertItem(index, object)
onObjectRemoved: (object) => playbackRateMenu.removeItem(object)
}
Controls.MenuSeparator {