ImageComponent: Do not set undefined to int

An int property cannot be undefined, make it var.
This commit is contained in:
Aleix Pol
2025-06-13 03:24:20 +02:00
committed by Aleix Pol Gonzalez
parent a67fb36a84
commit 50176cfafb

View File

@@ -49,7 +49,7 @@ Item {
/** /**
* The maximum height of the image. Can be left undefined most of the times. Passed to MediaSizeHelper::contentMaxHeight. * The maximum height of the image. Can be left undefined most of the times. Passed to MediaSizeHelper::contentMaxHeight.
*/ */
property int contentMaxHeight: undefined property var contentMaxHeight: undefined
implicitWidth: mediaSizeHelper.currentSize.width implicitWidth: mediaSizeHelper.currentSize.width
implicitHeight: mediaSizeHelper.currentSize.height implicitHeight: mediaSizeHelper.currentSize.height