ExtensionSystem: Make API for revision in PluginSpec

Change-Id: Icdc6bfa565cf67faa829fd473f2890e4987bd261
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Federico Guerinoni
2020-06-25 06:38:11 +02:00
parent 0238bff7d5
commit 5a091c3d98
3 changed files with 10 additions and 11 deletions

View File

@@ -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.