summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlibraryinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global/qlibraryinfo.cpp')
-rw-r--r--src/corelib/global/qlibraryinfo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index 541929f192..7868d3db59 100644
--- a/src/corelib/global/qlibraryinfo.cpp
+++ b/src/corelib/global/qlibraryinfo.cpp
@@ -281,6 +281,11 @@ QLibraryInfo::location(LibraryLocation loc)
path = QT_CONFIGURE_EXAMPLES_PATH;
break;
#endif
+#ifdef QT_CONFIGURE_TESTS_PATH
+ case TestsPath:
+ path = QT_CONFIGURE_TESTS_PATH;
+ break;
+#endif
default:
break;
}
@@ -331,6 +336,10 @@ QLibraryInfo::location(LibraryLocation loc)
case ExamplesPath:
key = QLatin1String("Examples");
break;
+ case TestsPath:
+ key = QLatin1String("Tests");
+ defaultValue = QLatin1String("tests");
+ break;
default:
break;
}
@@ -469,6 +478,7 @@ QLibraryInfo::location(LibraryLocation loc)
\value TranslationsPath The location of translation information for Qt strings.
\value SettingsPath The location for Qt settings.
\value ExamplesPath The location for examples upon install.
+ \value TestsPath The location of installed Qt testcases.
\sa location()
*/