aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpixmapcache_p.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2017-01-09 15:22:22 +0100
committerRobin Burchell <robin.burchell@crimson.no>2017-01-27 18:11:30 +0000
commitd0649a1b457f321cfafee1aaf443543fd11a7112 (patch)
tree08beaa9b918087163ce68da34e8547bc99985490 /src/quick/util/qquickpixmapcache_p.h
parent68932f24c66e2589bc202f4b5b7c248b7d19e6be (diff)
Make Item::grabToImage work in more cases, and improve test coverage
This fixes a regression caused by 9c50216c7bbbdb2bb51d4485286bf09e12fb5b62 when the Image specified fillMode: aspectRatioCrop/Fit. [ChangeLog][QtQuick][Image] Item::grabToImage on an Image element will now work regardless of the Image's sourceSize or cache properties. Change-Id: I225854c48f0c35a3cb2ef0dd56bf51bd88c31779 Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/quick/util/qquickpixmapcache_p.h')
-rw-r--r--src/quick/util/qquickpixmapcache_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/util/qquickpixmapcache_p.h b/src/quick/util/qquickpixmapcache_p.h
index f7cdfa7d07..a867771755 100644
--- a/src/quick/util/qquickpixmapcache_p.h
+++ b/src/quick/util/qquickpixmapcache_p.h
@@ -177,6 +177,8 @@ public:
static void purgeCache();
static bool isCached(const QUrl &url, const QSize &requestSize);
+ static const QLatin1String itemGrabberScheme;
+
private:
Q_DISABLE_COPY(QQuickPixmap)
QQuickPixmapData *d;