summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-23 00:35:48 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-24 06:52:41 +0200
commitab428e30004448dcff3c65163a8eb6533dd81542 (patch)
tree6c3e38034257788f854f4eb5d40ad08e4a0fbc13
parentf791c1c0b5e2fa65781462be14be95fcf652bf00 (diff)
Fix qdoc warning from QLibraryInfo after API change
In 557623cc4f22295e5e89462dfdff20d78b3b9cdc, QLibraryInfo::location became path. Change-Id: I71d61e44d3612b4613e1de58f2340174579eee3d Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/corelib/global/qlibraryinfo.cpp41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index 19ff39ad74..990c4269e3 100644
--- a/src/corelib/global/qlibraryinfo.cpp
+++ b/src/corelib/global/qlibraryinfo.cpp
@@ -636,7 +636,7 @@ static QString getPrefix(
}
#endif // QT_BUILD_QMAKE_BOOTSTRAP
-/*! \fn QString QLibraryInfo::path(LibraryPath loc)
+/*! \fn QString QLibraryInfo::location(LibraryLocation loc)
\obsolete Use path() instead.
Returns the path specified by \a loc.
@@ -644,7 +644,8 @@ static QString getPrefix(
*/
/*!
- Returns the path specified by \a p.
+ \since 6.0
+ Returns the path specified by \a p.
*/
QString QLibraryInfo::path(LibraryPath p)
{
@@ -662,7 +663,7 @@ QString QLibraryInfo::path(LibraryPath p)
QString
QLibraryInfo::rawLocation(LibraryPath loc, PathGroup group)
{
-#endif // QT_BUILD_QMAKE, started inside location !
+#endif // QT_BUILD_QMAKE, started inside path!
QString ret;
bool fromConf = false;
#if QT_CONFIG(settings)
@@ -853,27 +854,31 @@ QStringList QLibraryInfo::platformPluginArguments(const QString &platformName)
\keyword library location
- This enum type is used to specify a specific location
- specifier:
+ This enum type is used to query for a specific path:
\value PrefixPath The default prefix for all paths.
- \value DocumentationPath The location for documentation upon install.
- \value HeadersPath The location for all headers.
- \value LibrariesPath The location of installed libraries.
- \value LibraryExecutablesPath The location of installed executables required by libraries at runtime.
- \value BinariesPath The location of installed Qt binaries (tools and applications).
- \value PluginsPath The location of installed Qt plugins.
- \value Qml2ImportsPath The location of installed QML extensions to import (QML 2.x).
- \value ArchDataPath The location of general architecture-dependent Qt data.
- \value DataPath The location of general architecture-independent Qt data.
- \value TranslationsPath The location of translation information for Qt strings.
- \value ExamplesPath The location for examples upon install.
- \value TestsPath The location of installed Qt testcases.
- \value SettingsPath The location for Qt settings. Not applicable on Windows.
+ \value DocumentationPath The path to documentation upon install.
+ \value HeadersPath The path to all headers.
+ \value LibrariesPath The path to installed libraries.
+ \value LibraryExecutablesPath The path to installed executables required by libraries at runtime.
+ \value BinariesPath The path to installed Qt binaries (tools and applications).
+ \value PluginsPath The path to installed Qt plugins.
+ \value Qml2ImportsPath The path to installed QML extensions to import (QML 2.x).
+ \value ArchDataPath The path to general architecture-dependent Qt data.
+ \value DataPath The path to general architecture-independent Qt data.
+ \value TranslationsPath The path to translation information for Qt strings.
+ \value ExamplesPath The path to examples upon install.
+ \value TestsPath The path to installed Qt testcases.
+ \value SettingsPath The path to Qt settings. Not applicable on Windows.
\sa path()
*/
+/*!
+ \typealias QLibraryInfo::LibraryLocation
+ \obsolete Use LibraryPath with QLibraryInfo::path() instead.
+*/
+
QT_END_NAMESPACE
#if defined(Q_CC_GNU) && defined(ELF_INTERPRETER)