Skip to content
Snippets Groups Projects
Commit d6be0395 authored by hjk's avatar hjk
Browse files

qt4projectmanager: don't overuse QString::replace

parent c00266c2
No related branches found
No related tags found
No related merge requests found
...@@ -157,8 +157,10 @@ void GettingStartedWelcomePageWidget::updateCppExamples(const QString &examplePa ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment