forked from qt-creator/qt-creator
QtSupport: Fix handling of tutorials
Amends ac17e0e2ad
.
Change-Id: I9c0ffdb01ef446a76bfcbbdb8b5c560dd9f26e8d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -211,9 +211,9 @@ static QList<ExampleItem *> parseTutorials(QXmlStreamReader *reader, const FileP
|
|||||||
item->type = Tutorial;
|
item->type = Tutorial;
|
||||||
QXmlStreamAttributes attributes = reader->attributes();
|
QXmlStreamAttributes attributes = reader->attributes();
|
||||||
item->name = attributes.value(QLatin1String("name")).toString();
|
item->name = attributes.value(QLatin1String("name")).toString();
|
||||||
item->projectPath = projectsOffset
|
const QString projectPath = attributes.value(QLatin1String("projectPath")).toString();
|
||||||
/ attributes.value(QLatin1String("projectPath")).toString();
|
item->projectPath = projectsOffset / projectPath;
|
||||||
item->hasSourceCode = !item->projectPath.isEmpty();
|
item->hasSourceCode = !projectPath.isEmpty();
|
||||||
item->imageUrl = Utils::StyleHelper::dpiSpecificImageFile(
|
item->imageUrl = Utils::StyleHelper::dpiSpecificImageFile(
|
||||||
attributes.value(QLatin1String("imageUrl")).toString());
|
attributes.value(QLatin1String("imageUrl")).toString());
|
||||||
QPixmapCache::remove(item->imageUrl);
|
QPixmapCache::remove(item->imageUrl);
|
||||||
|
Reference in New Issue
Block a user