Add opt-out environment variable for @2x images
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Mon, 19 May 2014 12:42:14 +0000 (14:42 +0200)
committerMorten Johan Sørvig <morten.sorvig@digia.com>
Thu, 3 Jul 2014 07:18:23 +0000 (09:18 +0200)
commit2728460e62f8d4a5f7c3b884562aea9a526f9bb3
tree2fba75e29881cd577d7957e3dd4defa61ef259b1
parent2dcad8f5c899ecec459d9e2a2c30211ee9e6c20c
Add opt-out environment variable for @2x images

There are cases where @2x images are in use but
where you don't want the associated behavior:
- You are implementing an image editor
- You are inheriting a resource set which has @2x
  images, but don't want that behavior with Qt.

Add support for disabling @2x behavior with QT_HIGHDPI_DISABLE_2X_IMAGE_LOADING.

Change-Id: Ia570dfe556e0571a19e5ebdc626c4a7e626721b9
Task-id: QTBUG-38485
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/quick/items/qquickimagebase.cpp