forked from qt-creator/qt-creator
Provide ICore::documentationPath()
Change-Id: I74e4ad7650296e897edc3313904168a720c8d360 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -511,6 +511,13 @@ QString ICore::userResourcePath()
|
||||
return urp;
|
||||
}
|
||||
|
||||
QString ICore::documentationPath()
|
||||
{
|
||||
const QString docPath = QLatin1String(Utils::HostOsInfo::isMacHost()
|
||||
? "/../Resources/doc" : "/../share/doc/qtcreator");
|
||||
return QDir::cleanPath(QCoreApplication::applicationDirPath() + docPath);
|
||||
}
|
||||
|
||||
static QString compilerString()
|
||||
{
|
||||
#if defined(Q_CC_CLANG) // must be before GNU, because clang claims to be GNU too
|
||||
|
||||
Reference in New Issue
Block a user