aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2017-03-23 12:41:38 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2017-04-05 11:38:25 +0000
commit039590bd818e23da89fa23424b4bb872db913356 (patch)
tree49e43b0509f4afaa74bb931e852c0b287995de4d /src/imports
parentab00687dd24e3f7ae27c8caaf9194913869e0784 (diff)
Make scaled image size calculation available to image providers
When reduced size image loading is requested through Image::sourceSize, the precise calculation of the scaled size to load is somewhat complex. This commit moves that calculation into a function accessible to image providers, so that they may use the same scaling as Quick's default image loading, and avoid code duplication. This is a code restructuring only; no behavior should change. Change-Id: Ic965fb2b6c22a5d21add41b8395e3a3842697d20 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/imports')
0 files changed, 0 insertions, 0 deletions