You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
591 B
C++
31 lines
591 B
C++
#include "coreplugin.h"
|
|
#include <QJsonDocument>
|
|
#include <QFile>
|
|
#include <QApplication>
|
|
|
|
#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();
|
|
}
|
|
|
|
void CorePlugin::initServiceUi()
|
|
{
|
|
m_service = nullptr;
|
|
m_ui = nullptr;
|
|
m_settingsUi = new GlobalSettingsForm();
|
|
}
|
|
|
|
QTranslator *CorePlugin::translator()
|
|
{
|
|
return translatorFrom(":/translations/core_");
|
|
}
|
|
|