diff options
Diffstat (limited to 'src/corelib/global/qlibraryinfo.h')
-rw-r--r-- | src/corelib/global/qlibraryinfo.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h index e0f2273787..6cac6c83b0 100644 --- a/src/corelib/global/qlibraryinfo.h +++ b/src/corelib/global/qlibraryinfo.h @@ -15,7 +15,8 @@ class Q_CORE_EXPORT QLibraryInfo public: static const char *build() noexcept; - static bool isDebugBuild() noexcept Q_DECL_CONST_FUNCTION; + [[nodiscard]] static bool isDebugBuild() noexcept Q_DECL_CONST_FUNCTION; + [[nodiscard]] static bool isSharedBuild() noexcept Q_DECL_CONST_FUNCTION; #ifndef QT_BOOTSTRAPPED static QVersionNumber version() noexcept Q_DECL_CONST_FUNCTION; @@ -41,6 +42,7 @@ public: SettingsPath = 100 }; static QString path(LibraryPath p); + static QStringList paths(LibraryPath p); #if QT_DEPRECATED_SINCE(6, 0) using LibraryLocation = LibraryPath; QT_DEPRECATED_VERSION_X_6_0("Use path()") @@ -53,6 +55,13 @@ private: QLibraryInfo(); }; +#if QT_DEPRECATED_SINCE(6, 9) + +QT_DEPRECATED_VERSION_X_6_9("Use QLibraryInfo::isSharedBuild() instead.") +Q_CORE_EXPORT Q_DECL_CONST_FUNCTION bool qSharedBuild() noexcept; + +#endif + QT_END_NAMESPACE #endif // QLIBRARYINFO_H |