diff options
author | Martin Jones <martin.jones@nokia.com> | 2012-02-14 11:57:25 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-14 08:50:57 +0100 |
commit | d95178153a0f15991b2e6e91216dbcf5c0be2af3 (patch) | |
tree | 26f50195f44f8a5f3ac2757f157e6bfafb6286b6 /doc | |
parent | 58d85747964473a71ca5339d296d6870f0871b0c (diff) |
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 <aaron.kennedy@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/whatsnew.qdoc | 1 |
1 files changed, 1 insertions, 0 deletions
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. |