diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-03-14 17:27:02 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-03-14 16:53:08 +0000 |
commit | 21d3d0a55dda1ec003c98299dbf73a4f7f43f807 (patch) | |
tree | cf7bd3cafd8818d3bf3e9d7ca2cff53a85b0529e | |
parent | 912dd8df64c05fcdcbc9d862a41052654dd07546 (diff) |
QtSupport: Fix loading of tutorial thumbnailsv4.6.0-rc1
Amends 7d83472906566857f9afaa95440a41d1ed5edcae
Used the HighDpi loader in the wrong place.
Change-Id: I5bb7328167c0a9da811db92102feea67ee97c6c4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | src/plugins/qtsupport/exampleslistmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 199f581b6c..408dffedaf 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -301,8 +301,7 @@ void ExamplesListModel::parseExamples(QXmlStreamReader *reader, item.projectPath = attributes.value(QLatin1String("projectPath")).toString(); item.hasSourceCode = !item.projectPath.isEmpty(); item.projectPath = relativeOrInstallPath(item.projectPath, projectsOffset, examplesInstallPath); - item.imageUrl = Utils::StyleHelper::dpiSpecificImageFile( - attributes.value(QLatin1String("imageUrl")).toString()); + item.imageUrl = attributes.value(QLatin1String("imageUrl")).toString(); item.docUrl = attributes.value(QLatin1String("docUrl")).toString(); item.isHighlighted = attributes.value(QLatin1String("isHighlighted")).toString() == QLatin1String("true"); @@ -399,7 +398,8 @@ void ExamplesListModel::parseTutorials(QXmlStreamReader *reader, const QString & item.hasSourceCode = !item.projectPath.isEmpty(); item.projectPath.prepend(slash); item.projectPath.prepend(projectsOffset); - item.imageUrl = attributes.value(QLatin1String("imageUrl")).toString(); + item.imageUrl = Utils::StyleHelper::dpiSpecificImageFile( + attributes.value(QLatin1String("imageUrl")).toString()); item.docUrl = attributes.value(QLatin1String("docUrl")).toString(); item.isVideo = attributes.value(QLatin1String("isVideo")).toString() == QLatin1String("true"); item.videoUrl = attributes.value(QLatin1String("videoUrl")).toString(); |