forked from qt-creator/qt-creator
Utils: Add toSet/toList functions
As replacement for functionality that's being deprecated in Qt but still useful or needed, or that cannot easily be handled without resorting to #if QT_VERSION checks in user code. Change-Id: Id3575a54ff944bf0e89d452d13944fcaee270208 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
|
||||
#include <qmljs/qmljsinterpreter.h>
|
||||
#include <qmljs/qmljsviewercontext.h>
|
||||
//#include <projectexplorer/session.h>
|
||||
//#include <coreplugin/messagemanager.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/filesystemwatcher.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
@@ -437,7 +437,7 @@ void PluginDumper::loadDependencies(const QStringList &dependencies,
|
||||
}
|
||||
QStringList newDependencies;
|
||||
loadQmlTypeDescription(dependenciesPaths, errors, warnings, objects, 0, &newDependencies);
|
||||
newDependencies = (newDependencies.toSet() - *visitedPtr).toList();
|
||||
newDependencies = Utils::toList(Utils::toSet(newDependencies) - *visitedPtr);
|
||||
if (!newDependencies.isEmpty())
|
||||
loadDependencies(newDependencies, errors, warnings, objects, visitedPtr.take());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user