2024-11-29 17:47:45 +08:00

81 lines
3.0 KiB
C++

#include <QtQml/qqmlprivate.h>
#include <QtCore/qdir.h>
#include <QtCore/qurl.h>
static const unsigned char qt_resource_tree[] = {
0,
0,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,
8,0,2,0,0,0,1,0,0,0,2,0,0,0,34,0,
2,0,0,0,2,0,0,0,3,0,0,0,70,0,0,0,
0,0,1,0,0,0,0,0,0,0,46,0,0,0,0,0,
1,0,0,0,0};
static const unsigned char qt_resource_names[] = {
0,
1,0,0,0,47,0,47,0,10,12,65,152,229,0,68,0,
101,0,112,0,101,0,110,0,100,0,70,0,105,0,108,0,
101,0,3,0,0,86,28,0,81,0,77,0,76,0,9,12,
195,229,124,0,83,0,115,0,118,0,101,0,112,0,46,0,
113,0,109,0,108,0,19,11,115,228,188,0,105,0,109,0,
112,0,101,0,100,0,97,0,110,0,99,0,101,0,68,0,
105,0,97,0,108,0,111,0,103,0,46,0,113,0,109,0,
108};
static const unsigned char qt_resource_empty_payout[] = { 0, 0, 0, 0, 0 };
QT_BEGIN_NAMESPACE
extern Q_CORE_EXPORT bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
QT_END_NAMESPACE
namespace QmlCacheGeneratedCode {
namespace _0x5f_DependFile_QML_impedanceDialog_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f_DependFile_QML_Ssvep_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
}
namespace {
struct Registry {
Registry();
QHash<QString, const QQmlPrivate::CachedQmlUnit*> resourcePathToCachedUnit;
static const QQmlPrivate::CachedQmlUnit *lookupCachedUnit(const QUrl &url);
};
Q_GLOBAL_STATIC(Registry, unitRegistry)
Registry::Registry() {
resourcePathToCachedUnit.insert(QStringLiteral("/DependFile/QML/impedanceDialog.qml"), &QmlCacheGeneratedCode::_0x5f_DependFile_QML_impedanceDialog_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/DependFile/QML/Ssvep.qml"), &QmlCacheGeneratedCode::_0x5f_DependFile_QML_Ssvep_qml::unit);
QQmlPrivate::RegisterQmlUnitCacheHook registration;
registration.version = 0;
registration.lookupCachedQmlUnit = &lookupCachedUnit;
QQmlPrivate::qmlregister(QQmlPrivate::QmlUnitCacheHookRegistration, &registration);
QT_PREPEND_NAMESPACE(qRegisterResourceData)(/*version*/0x01, qt_resource_tree, qt_resource_names, qt_resource_empty_payout);
}
const QQmlPrivate::CachedQmlUnit *Registry::lookupCachedUnit(const QUrl &url) {
if (url.scheme() != QLatin1String("qrc"))
return nullptr;
QString resourcePath = QDir::cleanPath(url.path());
if (resourcePath.isEmpty())
return nullptr;
if (!resourcePath.startsWith(QLatin1Char('/')))
resourcePath.prepend(QLatin1Char('/'));
return unitRegistry()->resourcePathToCachedUnit.value(resourcePath, nullptr);
}
}
int QT_MANGLE_NAMESPACE(qInitResources_image)() {
::unitRegistry();
Q_INIT_RESOURCE(image_qmlcache);
return 1;
}
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_image))
int QT_MANGLE_NAMESPACE(qCleanupResources_image)() {
Q_CLEANUP_RESOURCE(image_qmlcache);
return 1;
}