If only one dimension (width or height) of the scaled size is set by an user, let's try to calculate the second one, based on the image original size and maintaining the aspect ratio. [ChangeLog][QtGui][QImageReader] Allow only one dimension (width or height) to be set for the scaled size. In this case, the other will be calculated automatically based on the original image size and maintaining the aspect ratio. Task-number: QTBUG-115039 Change-Id: If1b13b1ead3cf788915c08bdb3ba8becd8bf8042 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> |
||
|---|---|---|
| .. | ||
| baseline | ||
| images | ||
| .gitignore | ||
| BLACKLIST | ||
| CMakeLists.txt | ||
| android_testdata.qrc | ||
| tst_qimagereader.cpp | ||