aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml b/tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml
new file mode 100644
index 0000000000..cd092bc760
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeimage/data/aspectratio.qml
@@ -0,0 +1,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
+}