diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-06-13 15:50:19 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-06-13 16:21:11 +0200 |
commit | 60f7f00e4121fa15b66a95ebf01907957410bbe1 (patch) | |
tree | 2422a3c3fa15057ed76673320c91afd76c460b6d /src/plugins/help/helpplugin.cpp | |
parent | 3bc584024553cb845fca86feeea313ca22ed723d (diff) | |
download | qt-creator-60f7f00e4121fa15b66a95ebf01907957410bbe1.tar.gz |
Provide ICore::documentationPath()
Change-Id: I74e4ad7650296e897edc3313904168a720c8d360
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/help/helpplugin.cpp')
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index d3fca83085..65c1c21047 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -105,12 +105,6 @@ const char SB_OPENPAGES[] = "OpenPages"; #define IMAGEPATH ":/help/images/" -static QString docPath() -{ - return QLatin1String(Utils::HostOsInfo::isMacHost() - ? "/../Resources/doc/" : "/../share/doc/qtcreator/"); -} - using namespace Core; static QToolButton *toolButton(QAction *action) @@ -391,7 +385,7 @@ void HelpPlugin::extensionsInitialized() QStringList filesToRegister; // we might need to register creators inbuild help filesToRegister.append(QDir::cleanPath(QCoreApplication::applicationDirPath() - + docPath() + QLatin1String("qtcreator.qch"))); + + ICore::documentationPath() + QLatin1String("/qtcreator.qch"))); Core::HelpManager::instance()->registerDocumentation(filesToRegister); } |