From abe926dc1519e7a29769a1a050e80cc5512146a3 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 28 Apr 2022 19:36:39 +0200 Subject: Allow Qt plugins in subfolder. --- src/plugincontainer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/plugincontainer.h') diff --git a/src/plugincontainer.h b/src/plugincontainer.h index b250573a..2ab9a4b7 100644 --- a/src/plugincontainer.h +++ b/src/plugincontainer.h @@ -396,6 +396,16 @@ private: // Load the Qt plugin from the given file. QObject* loadQtPlugin(const QString& filepath); + // check if a plugin is folder containing a Qt plugin, it is, return the path to the + // DLL containing the plugin in the folder, otherwise return an empty optional + // + // a Qt plugin folder is a folder with a DLL containing a library (not in a subdirectory), + // if multiple plugins are present, only the first one is returned + // + // extra DLLs are ignored by Qt so can be present in the folder + // + std::optional isQtPluginFolder(const QString& filepath) const; + // See startPlugins for more details. This is simply an intermediate function // that can be used when loading plugins after initialization. This uses the // user interface in m_UserInterface. -- cgit v1.3.1