forked from qt-creator/qt-creator
qt4projectmanager: don't overuse QString::replace
(cherry picked from commit d6be0395f2
)
This commit is contained in:
@@ -157,8 +157,10 @@ void GettingStartedWelcomePageWidget::updateCppExamples(const QString &examplePa
|
|||||||
QString fileName = examplePath + relativeProPath;
|
QString fileName = examplePath + relativeProPath;
|
||||||
if (!QFile::exists(fileName))
|
if (!QFile::exists(fileName))
|
||||||
fileName = sourcePath + QLatin1String("/examples") + relativeProPath;
|
fileName = sourcePath + QLatin1String("/examples") + relativeProPath;
|
||||||
|
QString dirName1 = dirName;
|
||||||
|
dirName1.replace(slash, QLatin1Char('-'));
|
||||||
QString helpPath = QLatin1String("qthelp://com.trolltech.qt/qdoc/") +
|
QString helpPath = QLatin1String("qthelp://com.trolltech.qt/qdoc/") +
|
||||||
dirName.replace(slash, QLatin1Char('-')) +
|
dirName1 +
|
||||||
QLatin1Char('-') + fn + QLatin1String(".html");
|
QLatin1Char('-') + fn + QLatin1String(".html");
|
||||||
|
|
||||||
QAction *exampleAction = subMenu->addAction(name);
|
QAction *exampleAction = subMenu->addAction(name);
|
||||||
|
Reference in New Issue
Block a user