summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qlibraryinfo.cpp10
-rw-r--r--src/corelib/global/qlibraryinfo.h3
2 files changed, 12 insertions, 1 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()
*/
diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h
index dafc6bbd8b..8d1607d045 100644
--- a/src/corelib/global/qlibraryinfo.h
+++ b/src/corelib/global/qlibraryinfo.h
@@ -77,7 +77,8 @@ public:
TranslationsPath,
SettingsPath,
ExamplesPath,
- ImportsPath
+ ImportsPath,
+ TestsPath
};
static QString location(LibraryLocation); // ### Qt 5: consider renaming it to path()