forked from qt-creator/qt-creator
ExtensionSystem: Refactor PluginSpec
Splits the functionality between plugin type specific and general. Allows Plugins to be loaded after the first pass, e.g. for Lua scripted plugins. Change-Id: If2712817a672c49d554fdc308250cb06ca7eb3f8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -154,11 +154,11 @@ void checkContents(QPromise<ArchiveIssue> &promise, const FilePath &tempDir)
|
||||
if (promise.isCanceled())
|
||||
return;
|
||||
it.next();
|
||||
PluginSpec *spec = PluginSpec::read(it.filePath());
|
||||
expected_str<PluginSpec *> spec = PluginSpecImpl::read(it.filePath());
|
||||
if (spec) {
|
||||
// Is a Qt Creator plugin. Let's see if we find a Core dependency and check the
|
||||
// version
|
||||
const QVector<PluginDependency> dependencies = spec->dependencies();
|
||||
const QVector<PluginDependency> dependencies = (*spec)->dependencies();
|
||||
const auto found = std::find_if(dependencies.constBegin(), dependencies.constEnd(),
|
||||
[coreplugin](const PluginDependency &d) { return d.name == coreplugin->name(); });
|
||||
if (found == dependencies.constEnd())
|
||||
|
||||
Reference in New Issue
Block a user