diff --git a/src/qml/ImageWithFallback.qml b/src/qml/ImageWithFallback.qml index 881b3b12..00cc4c65 100644 --- a/src/qml/ImageWithFallback.qml +++ b/src/qml/ImageWithFallback.qml @@ -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 } diff --git a/src/qml/PlaybackRateMenu.qml b/src/qml/PlaybackRateMenu.qml index a1be3e8b..19e0db13 100644 --- a/src/qml/PlaybackRateMenu.qml +++ b/src/qml/PlaybackRateMenu.qml @@ -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 {