You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "PluginLoader.hpp"
-
- PluginLoader::PluginLoader(QObject *parent)
- : QObject(parent)
- {
- }
-
- QObject* PluginLoader::loadPlugin(const QString& path)
- {
- if (m_loader.isLoaded()) {
- m_loader.unload();
- }
-
- m_loader.setFileName(path);
- return m_loader.instance();
- }
-
- bool PluginLoader::unloadPlugin()
- {
- return m_loader.unload();
- }
-
- QString PluginLoader::errorString() const
- {
- return m_loader.errorString();
- }
|