File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,15 @@ PluginSpec::~PluginSpec() {
182
182
d = 0 ;
183
183
}
184
184
185
+ // Begin OpenVPI patch
186
+ QJsonObject ExtensionSystem::PluginSpec::metadata () const {
187
+ return d->metaData ;
188
+ }
189
+
185
190
QString PluginSpec::displayName () const {
186
191
return d->displayName .isEmpty () ? d->name : d->displayName ;
187
192
}
193
+ // End
188
194
189
195
/* !
190
196
The plugin name. This is valid after the PluginSpec::Read state is reached.
@@ -603,6 +609,7 @@ bool PluginSpecPrivate::readMetaData(const QJsonObject &metaData) {
603
609
if (!value.isObject ())
604
610
return reportError (tr (" Plugin meta data not found" ));
605
611
QJsonObject pluginInfo = value.toObject ();
612
+ this ->metaData = pluginInfo;
606
613
607
614
// Begin OpenVPI patch
608
615
value = pluginInfo.value (QLatin1String (PLUGIN_DISPLAY_NAME));
@@ -1009,4 +1016,4 @@ void PluginSpecPrivate::kill() {
1009
1016
delete plugin;
1010
1017
plugin = 0 ;
1011
1018
state = PluginSpec::Deleted;
1012
- }
1019
+ }
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ namespace ExtensionSystem {
85
85
86
86
~PluginSpec ();
87
87
88
- // Begin OpenVPI patch;
88
+ // Begin OpenVPI patch
89
+ QJsonObject metadata () const ;
89
90
QString displayName () const ;
90
91
// End
91
92
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ class EXTENSIONSYSTEM_EXPORT PluginSpecPrivate : public QObject
74
74
QPluginLoader loader;
75
75
76
76
// Begin OpenVPI patch
77
+ QJsonObject metaData;
77
78
QString displayName;
79
+ // End
78
80
79
81
QString name;
80
82
QString version;
You can’t perform that action at this time.
0 commit comments