qt4projectmanager: don't overuse QString::replace

(cherry picked from commit d6be0395f2)
This commit is contained in:
hjk
2010-08-23 15:50:03 +02:00
parent 7974504797
commit 55c074e89c

View File

@@ -163,8 +163,10 @@ void GettingStartedWelcomePageWidget::updateCppExamples(const QString &examplePa
QString fileName = examplePath + relativeProPath;
if (!QFile::exists(fileName))
fileName = sourcePath + QLatin1String("/examples") + relativeProPath;
QString dirName1 = dirName;
dirName1.replace(slash, QLatin1Char('-'));
QString helpPath = QLatin1String("qthelp://com.trolltech.qt/qdoc/") +
dirName.replace(slash, QLatin1Char('-')) +
dirName1 +
QLatin1Char('-') + fn + QLatin1String(".html");
QAction *exampleAction = subMenu->addAction(name);