#include "coreplugin.h" #include #include #include "settings/globalsettingsform.h" CorePlugin::CorePlugin() { Q_INIT_RESOURCE(rc); QFile f(":/metaData.json"); f.open(QIODevice::ReadOnly | QIODevice::Text); QJsonDocument d = QJsonDocument::fromJson(f.readAll()); init(d.object()); f.close(); } CorePlugin::~CorePlugin() { } void CorePlugin::initServiceUi() { m_service = NULL; m_ui = NULL; m_settingsUi = new GlobalSettingsForm(); } QTranslator *CorePlugin::translator() { QTranslator *trans = new QTranslator(); trans->load(":/translations/core_" + QLocale::system().name()); return trans; }