Changeset View
Changeset View
Standalone View
Standalone View
src/xslt.cpp
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Line(s) | 457 | { | |||
---|---|---|---|---|---|
484 | } | 484 | } | ||
485 | //qCDebug(KDocToolsLog) << "Found catalogs: " << catalogs; | 485 | //qCDebug(KDocToolsLog) << "Found catalogs: " << catalogs; | ||
486 | return catalogs; | 486 | return catalogs; | ||
487 | } | 487 | } | ||
488 | 488 | | |||
489 | QStringList KDocTools::documentationDirs() | 489 | QStringList KDocTools::documentationDirs() | ||
490 | { | 490 | { | ||
491 | /* List of paths containing documentation */ | 491 | /* List of paths containing documentation */ | ||
492 | return QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory); | 492 | QStringList allDocDirs; | ||
493 | allDocDirs << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral(KDOCTOOLS_DOCBUNDLEDIR), QStandardPaths::LocateDirectory) | ||||
494 | << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory) | ||||
495 | << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("help"), QStandardPaths::LocateDirectory); | ||||
496 | if (!QStringLiteral(KDOCTOOLS_CUSTOM_DOC_PATH).isEmpty()) { | ||||
497 | allDocDirs << QStringLiteral(KDOCTOOLS_CUSTOM_DOC_PATH); | ||||
498 | } | ||||
499 | allDocDirs.removeDuplicates(); | ||||
500 | return allDocDirs; | ||||
493 | } | 501 | } |