1 #pragma once |
1 #pragma once |
2 #include <QObject> |
2 #include <QObject> |
3 #include <QDesignerCustomWidgetInterface> |
3 #include <QDesignerCustomWidgetInterface> |
4 |
4 |
5 class LDForgeWidgetCollection final : public QObject, public QDesignerCustomWidgetCollectionInterface |
5 class PluginCollection final : public QObject, public QDesignerCustomWidgetCollectionInterface |
6 { |
6 { |
7 Q_OBJECT |
7 Q_OBJECT |
8 Q_PLUGIN_METADATA(IID "org.qgis.customwidgets") |
8 Q_PLUGIN_METADATA(IID "org.qgis.customwidgets") |
9 Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) |
9 Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) |
10 // QDesignerCustomWidgetCollectionInterface interface |
10 // QDesignerCustomWidgetCollectionInterface interface |
11 QList<QDesignerCustomWidgetInterface*> interfaces; |
11 QList<QDesignerCustomWidgetInterface*> interfaces; |
12 public: |
12 public: |
13 LDForgeWidgetCollection(QObject* parent = nullptr); |
13 PluginCollection(QObject* parent = nullptr); |
14 QList<QDesignerCustomWidgetInterface*> customWidgets() const override; |
14 QList<QDesignerCustomWidgetInterface*> customWidgets() const override; |
15 }; |
15 }; |
16 |
16 |
17 class Vec3EditorPlugin final : public QObject, public QDesignerCustomWidgetInterface |
17 class Vec3EditorPlugin final : public QObject, public QDesignerCustomWidgetInterface |
18 { |
18 { |