QtSupport: Introduce a type alias for QList<BaseQtVersion *>

Change-Id: I96b0eccc04da2f4a1a4e5ea9bdceb91b3fa3d724
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-01-24 13:25:48 +01:00
parent 761e1fb13f
commit a48a96e05c
10 changed files with 44 additions and 43 deletions

View File

@@ -119,7 +119,7 @@ ExampleSetModel::ExampleSetModel()
&ExampleSetModel::helpManagerInitialized);
}
void ExampleSetModel::recreateModel(const QList<QtVersion *> &qtVersions)
void ExampleSetModel::recreateModel(const QtVersions &qtVersions)
{
beginResetModel();
clear();
@@ -525,7 +525,7 @@ QPixmap ExamplesListModel::fetchPixmapAndUpdatePixmapCache(const QString &url) c
void ExampleSetModel::updateQtVersionList()
{
QList<QtVersion *> versions = QtVersionManager::sortVersions(QtVersionManager::versions(
QtVersions versions = QtVersionManager::sortVersions(QtVersionManager::versions(
[](const QtVersion *v) { return v->hasExamples() || v->hasDemos(); }));
// prioritize default qt version
@@ -559,7 +559,7 @@ void ExampleSetModel::updateQtVersionList()
emit selectedExampleSetChanged(currentIndex);
}
QtVersion *ExampleSetModel::findHighestQtVersion(const QList<QtVersion *> &versions) const
QtVersion *ExampleSetModel::findHighestQtVersion(const QtVersions &versions) const
{
QtVersion *newVersion = nullptr;
for (QtVersion *version : versions) {