summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml
blob: cd092bc760e62869bb60e2dc1d53a280f49d9034 (plain)
1
2
3
4
5
6
7
8
9
10
import QtQuick 1.0

Image { 
    property int widthChange: 0
    property int heightChange: 0
    source: "heart.png"
    fillMode: Image.PreserveAspectFit;
    onWidthChanged: widthChange += 1
    onHeightChanged: heightChange += 1
}