Skip to content
Snippets Groups Projects
Commit 3768dc02 authored by Eike Ziller's avatar Eike Ziller
Browse files

Use QStringList directly for setting.


For installed documentation. Instead of splitting a string at ';'.

Change-Id: I0e0ad0ece337bc8738501c008ff67412df1f18bb
Reviewed-by: default avatarAlexander Lenhardt <alexander.lenhardt@nokia.com>
parent 0594d643
No related branches found
No related tags found
No related merge requests found
...@@ -439,7 +439,7 @@ QStringList HelpManagerPrivate::documentationFromInstaller() ...@@ -439,7 +439,7 @@ QStringList HelpManagerPrivate::documentationFromInstaller()
{ {
QSettings *installSettings = Core::ICore::instance()->settings(); QSettings *installSettings = Core::ICore::instance()->settings();
QStringList documentationPaths = installSettings->value(QLatin1String("Help/InstalledDocumentation")) QStringList documentationPaths = installSettings->value(QLatin1String("Help/InstalledDocumentation"))
.toString().split(QLatin1Char(';'), QString::SkipEmptyParts); .toStringList();
QStringList documentationFiles; QStringList documentationFiles;
foreach (const QString &path, documentationPaths) { foreach (const QString &path, documentationPaths) {
QFileInfo pathInfo(path); QFileInfo pathInfo(path);
......
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