Fixed schema from resource in static lib

This commit is contained in:
T. van der Zwan 2013-08-22 19:32:40 +00:00
parent 51506cdeb9
commit 1e6c361dab
2 changed files with 5 additions and 2 deletions

View File

@ -82,8 +82,11 @@ LedString Hyperion::createLedString(const Json::Value& ledsConfig)
Json::Value Hyperion::loadConfig(const std::string& configFile)
{
// make sure the resources are loaded (they may be left out after static linking)
Q_INIT_RESOURCE(resource);
// read the json schema from the resource
QResource schemaData(":/hyperion.schema.json");
QResource schemaData(":/hyperion-schema");
assert(schemaData.isValid());
Json::Reader jsonReader;

View File

@ -1,5 +1,5 @@
<RCC>
<qresource prefix="/">
<file>hyperion.schema.json</file>
<file alias="hyperion-schema">hyperion.schema.json</file>
</qresource>
</RCC>