28 static std::string qtMajorVersion;
29 static std::string qtTag(
"%V");
30 if (qtMajorVersion.empty()) {
31 qtMajorVersion = std::string(QT_VERSION_STR, 0, 1);
34 return replace(ConfigService::Instance().getString(key), qtTag, qtMajorVersion);
52 static std::vector<std::string> excludes{
"Qt4"};
53 return LibraryManager::Instance().openLibraries(path, LibraryManagerImpl::NonRecursive, excludes);
Class for opening shared libraries.
Manage the lifetime of a class intended to be a singleton.
EXPORT_OPT_MANTIDQT_COMMON int loadPluginsFromPath(const std::string &path)
Load plugins from a path.
EXPORT_OPT_MANTIDQT_COMMON int loadPluginsFromCfgPath(const std::string &key)
Load plugins from a path given by the key in the config service.
EXPORT_OPT_MANTIDQT_COMMON std::string qtPluginPathFromCfg(const std::string &key)
Retrieve the path to some qt-related plugins from the mantid configuration If the value contains V th...
MANTID_KERNEL_DLL std::string replace(const std::string &input, const std::string &find_what, const std::string &replace_with)
Return a string with all matching occurence-strings.