20 #include <QImageReader> 21 #include <QQuickImageProvider> 45 QImage requestImage(
const QString &
id, QSize *size,
const QSize &requestedSize)
override;
48 static QString imageCacheRoot();
49 static QFileInfo imagePath(
const QUrl &image);
50 static bool needsUpdate(
const QUrl &image,
const QFileInfo &cachePath,
const QSize &imageSize,
const QSize &requestedSize, QSize &finalSize);
51 static QSize calculateSize(
const QSize &imageSize,
const QSize &requestedSize);
52 static QImage loadAndCacheImage(QImageReader &reader,
const QFileInfo &cachePath,
const QSize &finalSize);