From d95178153a0f15991b2e6e91216dbcf5c0be2af3 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Tue, 14 Feb 2012 11:57:25 +1000 Subject: Preserve aspect ratio when setting Image.sourceSize Setting both sourceSize.width and sourceSize.height results in changing the image aspect ratio. This is never what you'd want. Fit the image to the provided sourceSize, maintaining the aspect ratio. Task-number: QTBUG-21161 Change-Id: I77e9aacb8d31475d5df0aef1de52c0edbd1e2fc9 Reviewed-by: Aaron Kennedy --- doc/src/declarative/whatsnew.qdoc | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/src') diff --git a/doc/src/declarative/whatsnew.qdoc b/doc/src/declarative/whatsnew.qdoc index 4e67bac407..05de859265 100644 --- a/doc/src/declarative/whatsnew.qdoc +++ b/doc/src/declarative/whatsnew.qdoc @@ -107,6 +107,7 @@ Added topMargin, bottomMargin, leftMargin, rightMargin, xOrigin, yOrigin propert Image has two new properties: horizontalAlignment and verticalAlignment. It also has a new value for fillMode (Image.Pad) that does not transform the image. +Setting Image sourceSize.width and sourceSize.height will now fit the image to the size, maintaining aspect. Grid now has rowSpacing and columnSpacing properties. -- cgit v1.2.3