19 #include "ImageCache.h" 24 void ImageCachePlugin::registerTypes(
const char *uri)
26 Q_ASSERT(uri == QLatin1String(
"ImageCache"));
28 qmlRegisterTypeNotAvailable(uri, 0, 1,
"__ImageCacheIgnoreMe",
29 QStringLiteral(
"Ignore this: QML plugins must contain at least one type"));
32 void ImageCachePlugin::initializeEngine(QQmlEngine* engine,
const char* uri)
34 Q_ASSERT(uri == QLatin1String(
"ImageCache"));
36 QQmlExtensionPlugin::initializeEngine(engine, uri);
38 engine->addImageProvider(
"unity8imagecache",
new ImageCache);