aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/exampleslistmodel.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-02-28 15:35:18 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2018-03-11 10:49:33 +0000
commit7d83472906566857f9afaa95440a41d1ed5edcae (patch)
tree1f126ad9719e5ca1f1c8531dffa3e7dfa6d0f265 /src/plugins/qtsupport/exampleslistmodel.cpp
parentd90da11f07a07cbb5608deac607ff0c46cc12db8 (diff)
QtSupport/Welcome: Refresh the tutorials/examples/videos thumbnails
And adjust the drawing code to support the HighDPI variants. Task-number: QTCREATORBUG-19942 Change-Id: I77b07674305b29680de27714fc56f1ad25f5346d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/exampleslistmodel.cpp')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index a9e4c208acf..199f581b6c1 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -40,6 +40,7 @@
#include <utils/algorithm.h>
#include <utils/environment.h>
#include <utils/qtcassert.h>
+#include <utils/stylehelper.h>
#include <algorithm>
@@ -300,7 +301,8 @@ 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 = attributes.value(QLatin1String("imageUrl")).toString();
+ item.imageUrl = Utils::StyleHelper::dpiSpecificImageFile(
+ attributes.value(QLatin1String("imageUrl")).toString());
item.docUrl = attributes.value(QLatin1String("docUrl")).toString();
item.isHighlighted = attributes.value(QLatin1String("isHighlighted")).toString() == QLatin1String("true");