forked from qt-creator/qt-creator
Add Qt for MCUs examples to the welcome page
Fixes: QTCREATORBUG-25320 Change-Id: Ic770e55f41b50d384f9964cabfa7ef031dcacc13 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Erik Verbruggen
parent
67a3d2e3d1
commit
3b1bc1d053
@@ -565,13 +565,20 @@ void McuSupportOptions::registerExamples()
|
||||
if (docsDir.isEmpty())
|
||||
return;
|
||||
|
||||
const FilePath examplesDir = McuSupportOptions::qulDirFromSettings().pathAppended("demos");
|
||||
auto examples = {
|
||||
std::make_pair(QStringLiteral("demos"), tr("Qt for MCUs Demos")),
|
||||
std::make_pair(QStringLiteral("examples"), tr("Qt for MCUs Examples"))
|
||||
};
|
||||
for (const auto &dir : examples) {
|
||||
const FilePath examplesDir =
|
||||
McuSupportOptions::qulDirFromSettings().pathAppended(dir.first);
|
||||
if (!examplesDir.exists())
|
||||
return;
|
||||
continue;
|
||||
|
||||
QtSupport::QtVersionManager::registerExampleSet("Qt for MCUs", docsDir.toString(),
|
||||
QtSupport::QtVersionManager::registerExampleSet(dir.second, docsDir.toString(),
|
||||
examplesDir.toString());
|
||||
}
|
||||
}
|
||||
|
||||
void McuSupportOptions::deletePackagesAndTargets()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user