forked from qt-creator/qt-creator
ExtensionSystem: Make API for revision in PluginSpec
Change-Id: Icdc6bfa565cf67faa829fd473f2890e4987bd261 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -288,6 +288,14 @@ QString PluginSpec::category() const
|
||||
return d->category;
|
||||
}
|
||||
|
||||
QString PluginSpec::revision() const
|
||||
{
|
||||
const QJsonValue revision = metaData().value("Revision");
|
||||
if (revision.isString())
|
||||
return revision.toString();
|
||||
return QString();
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a QRegularExpression matching the platforms this plugin works on.
|
||||
An empty pattern implies all platforms.
|
||||
|
||||
Reference in New Issue
Block a user