aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/exampleslistmodel.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-01-24 13:25:48 +0100
committerhjk <hjk@qt.io>2022-01-24 14:38:20 +0000
commita48a96e05ca1119e590cb53f4a3858760e77c3f8 (patch)
tree3b9fc2d95aa020702968bd55b82dfdc5e5358662 /src/plugins/qtsupport/exampleslistmodel.cpp
parent761e1fb13f14475c4bdc3a49751f986535261f03 (diff)
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>
Diffstat (limited to 'src/plugins/qtsupport/exampleslistmodel.cpp')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 695d48e4ae..7f030d524f 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -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) {