20
property bool resized: false
21
property bool resizing: false
22
fillMode: Image.PreserveAspectCrop
24
onSourceSizeChanged: {
25
if (!resized && !resizing) {
27
var ar = width / height;
28
var ssar = sourceSize.width / sourceSize.height;
30
sourceSize = Qt.size(width, 0);
32
sourceSize = Qt.size(0, height);
23
property string source
24
property alias image: innerImage
25
property alias asynchronous: innerImage.asynchronous
26
property alias verticalAlignment: innerImage.verticalAlignment
27
property alias horizontalAlignment: innerImage.horizontalAlignment
28
property alias fillMode: innerImage.fillMode
40
fillMode: Image.PreserveAspectCrop
41
sourceSize: sizer.sourceSize.width == 0 && sizer.sourceSize.height == 0 ? undefined : sizer.sourceSize
42
source: sizer.sourceSize.width == -1 && sizer.sourceSize.height == -1 ? "" : root.source