|
|
@ -11,6 +11,9 @@ |
|
|
|
#include "QGCCorePlugin.h" |
|
|
|
#include "QGCCorePlugin.h" |
|
|
|
#include "QGCApplication.h" |
|
|
|
#include "QGCApplication.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QQmlEngine> |
|
|
|
|
|
|
|
#include <QtQml> |
|
|
|
|
|
|
|
|
|
|
|
static const char* kJsonFile = ":/json/%1.SettingsGroup.json"; |
|
|
|
static const char* kJsonFile = ":/json/%1.SettingsGroup.json"; |
|
|
|
|
|
|
|
|
|
|
|
SettingsGroup::SettingsGroup(const QString& name, const QString& settingsGroup, QObject* parent) |
|
|
|
SettingsGroup::SettingsGroup(const QString& name, const QString& settingsGroup, QObject* parent) |
|
|
@ -19,6 +22,8 @@ SettingsGroup::SettingsGroup(const QString& name, const QString& settingsGroup, |
|
|
|
, _name (name) |
|
|
|
, _name (name) |
|
|
|
, _settingsGroup(settingsGroup) |
|
|
|
, _settingsGroup(settingsGroup) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership); |
|
|
|
|
|
|
|
|
|
|
|
_nameToMetaDataMap = FactMetaData::createMapFromJsonFile(QString(kJsonFile).arg(name), this); |
|
|
|
_nameToMetaDataMap = FactMetaData::createMapFromJsonFile(QString(kJsonFile).arg(name), this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|