1 #ifndef CIRCLEDETECTORPLUGINMODEL_H 2 #define CIRCLEDETECTORPLUGINMODEL_H 4 #include <QAbstractTableModel> 8 #include <imageprocessorpluginiface.h> 9 #include "circledetectorpluginmodel_global.h" 10 Q_DECLARE_METATYPE(PluginSharedPointer)
12 CIRCLE_MODEL_BEGIN_NAMESPACE
18 class _CircleDetectorPluginModelImpl;
19 friend class _CircleDetectorPluginModelImpl;
20 std::unique_ptr<_CircleDetectorPluginModelImpl> _pimpl;
25 FILTER = Qt::UserRole + 1,
36 virtual int rowCount(
const QModelIndex &parent)
const override;
37 virtual int columnCount(
const QModelIndex &parent)
const override;
38 virtual QVariant data(
const QModelIndex &index,
int role)
const override;
39 QString pluginPath()
const;
40 void setPluginPath(
const QString &pluginPath);
41 QList<QString> pluginPaths()
const;
42 PluginSharedPointerList filters()
const;
43 void setFilters(
const PluginSharedPointerList &filters);
46 CIRCLE_MODEL_END_NAMESPACE
47 #endif // CIRCLEDETECTORPLUGINMODEL_H