Load "@2x" images on high-dpi "retina" systems.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Tue, 5 Mar 2013 07:55:34 +0000 (08:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 5 Mar 2013 08:31:09 +0000 (09:31 +0100)
commit707bbe5dea9d7398b205124a54422f2fafb6f151
treea39cdcc66e964caa6a59e5ea37c2a9e529e323eb
parente65a7e2f9955bb873c569fcb7e40dd645d9846c2
Load "@2x" images on high-dpi "retina" systems.

Check for the existence of a "@2x" file when loading
an image from a local file url. For example,

Image {
source = "foo.png"
}

will load "foo@2x.png" if that file exists.

Change-Id: I37688d035bc9eb412d54be0eb758dd52ebfa5d90
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/quick/util/qquickpixmapcache.cpp