forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user