Commit a0402dc0 authored by hjk's avatar hjk

QtSupport: Move built-in list of tutorials to resources

Task-number: QTCREATORBUG-17635
Change-Id: Ie1a738efe2dc6dbb217079cce508642b5c1504d6
Reviewed-by: default avatarRobert Loehning <robert.loehning@qt.io>
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 42e3492e
......@@ -551,10 +551,9 @@ BaseQtVersion *ExamplesListModel::findHighestQtVersion() const
QStringList ExamplesListModel::exampleSources(QString *examplesInstallPath, QString *demosInstallPath)
{
QStringList sources;
QString resourceDir = Core::ICore::resourcePath() + QLatin1String("/welcomescreen/");
// Qt Creator shipped tutorials
sources << (resourceDir + QLatin1String("/qtcreator_tutorials.xml"));
sources << ":/qtsupport/qtcreator_tutorials.xml";
QString examplesPath;
QString demosPath;
......
......@@ -5,5 +5,15 @@
<file>images/dark_qt_project.png</file>
<file>images/dark_qt_qrc.png</file>
<file>QtSupport.mimetypes.xml</file>
<file>images_areaofinterest.xml</file>
<file>qtcreator_tutorials.xml</file>
<file>images/icons/androidapp.png</file>
<file>images/icons/buildrun.png</file>
<file>images/icons/ddays13.png</file>
<file>images/icons/ddays14.png</file>
<file>images/icons/qtquick.png</file>
<file>images/icons/qwidget.png</file>
<file>images/icons/tutorialicon.png</file>
<file>images/icons/worldsummit15.png</file>
</qresource>
</RCC>
......@@ -27,7 +27,6 @@
#include <utils/fileutils.h>
#include <coreplugin/icore.h>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QDebug>
......@@ -45,7 +44,7 @@ public:
AreasOfInterest::AreasOfInterest()
{
#ifdef QT_CREATOR
areas = ScreenshotCropper::loadAreasOfInterest(Core::ICore::resourcePath() + QLatin1String("/welcomescreen/images_areaofinterest.xml"));
areas = ScreenshotCropper::loadAreasOfInterest(":/qtsupport/images_areaofinterest.xml");
#endif // QT_CREATOR
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment