aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2023-04-18 08:03:17 +0200
committerChristian Stenger <christian.stenger@qt.io>2023-04-18 11:33:19 +0000
commit610c0fee8787c3c3908630e5142036ffe13553a8 (patch)
treec18475df71a82db0e9c1ed2d1696c4b5b1cdb8e0
parent178c0abbd3e71660ec0d808df97e5620e126a709 (diff)
QtSupport: Fix handling of tutorials
Amends ac17e0e2ad47f16c80eb233725c4a603f6053acb. Change-Id: I9c0ffdb01ef446a76bfcbbdb8b5c560dd9f26e8d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/plugins/qtsupport/examplesparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/examplesparser.cpp b/src/plugins/qtsupport/examplesparser.cpp
index bdde8e66a0f..5fd3161777c 100644
--- a/src/plugins/qtsupport/examplesparser.cpp
+++ b/src/plugins/qtsupport/examplesparser.cpp
@@ -211,9 +211,9 @@ static QList<ExampleItem *> parseTutorials(QXmlStreamReader *reader, const FileP
item->type = Tutorial;
QXmlStreamAttributes attributes = reader->attributes();
item->name = attributes.value(QLatin1String("name")).toString();
- item->projectPath = projectsOffset
- / attributes.value(QLatin1String("projectPath")).toString();
- item->hasSourceCode = !item->projectPath.isEmpty();
+ const QString projectPath = attributes.value(QLatin1String("projectPath")).toString();
+ item->projectPath = projectsOffset / projectPath;
+ item->hasSourceCode = !projectPath.isEmpty();
item->imageUrl = Utils::StyleHelper::dpiSpecificImageFile(
attributes.value(QLatin1String("imageUrl")).toString());
QPixmapCache::remove(item->imageUrl);