1 #include "circledetectorpluginmodel.h" 2 #include "impl/circledetectorpluginmodelimpl.h" 3 #include <QPluginLoader> 5 #include "circledetectorpluginmodel_global.h" 6 CIRCLE_MODEL_BEGIN_NAMESPACE
7 CircleDetectorPluginModel::CircleDetectorPluginModel(QString path, QObject *parent): QAbstractTableModel(parent),
8 _pimpl{INIT_UNIQUE_PTR(CircleDetectorPluginModel::_CircleDetectorPluginModelImpl, path,
this)}
13 void CircleDetectorPluginModel::loadPlugins()
15 _pimpl->loadPlugins();
18 CircleDetectorPluginModel::~CircleDetectorPluginModel()
24 int CircleDetectorPluginModel::rowCount(
const QModelIndex &parent)
const 26 return _pimpl->rowCount(parent);
29 int CircleDetectorPluginModel::columnCount(
const QModelIndex &parent)
const 31 return _pimpl->columnCount(parent);
34 QVariant CircleDetectorPluginModel::data(
const QModelIndex &index,
int role)
const 36 return _pimpl->data(index, role);
39 QString CircleDetectorPluginModel::pluginPath()
const 41 return _pimpl->pluginPath();
44 void CircleDetectorPluginModel::setPluginPath(
const QString &pluginPath)
46 _pimpl->setPluginPath(pluginPath);
49 QList<QString> CircleDetectorPluginModel::pluginPaths()
const 51 return _pimpl->pluginPaths();
54 PluginSharedPointerList CircleDetectorPluginModel::filters()
const 56 return _pimpl->filters();
59 void CircleDetectorPluginModel::setFilters(
const PluginSharedPointerList &filters)
61 _pimpl->setFilters(filters);
63 CIRCLE_MODEL_END_NAMESPACE