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:
@@ -43,6 +43,7 @@
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/globalfilechangeblocker.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
@@ -744,7 +745,7 @@ QString DocumentManager::allDocumentFactoryFiltersString(QString *allFilesFilter
|
||||
}
|
||||
}
|
||||
|
||||
QStringList filters = uniqueFilters.toList();
|
||||
QStringList filters = Utils::toList(uniqueFilters);
|
||||
filters.sort();
|
||||
const QString allFiles = Utils::allFilesFilterString();
|
||||
if (allFilesFilter)
|
||||
|
Reference in New Issue
Block a user