summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qt4project/customwidgetwizard/tpl_collection.h
blob: e8e792915bb272d970eb926bbe823ea7ea70082a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef @COLLECTION_INCLUDE_GUARD@
#define @COLLECTION_INCLUDE_GUARD@
@endif

#include <QtDesigner>
#include <qplugin.h>

class @COLLECTION_PLUGIN_CLASS@ : public QObject, public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
    @COLLECTION_PLUGIN_METADATA@

public:
    explicit @COLLECTION_PLUGIN_CLASS@(QObject *parent = nullptr);

    QList<QDesignerCustomWidgetInterface*> customWidgets() const override;

private:
    QList<QDesignerCustomWidgetInterface*> m_widgets;
};

@if ! '%{Cpp:PragmaOnce}'
#endif // @COLLECTION_INCLUDE_GUARD@
@endif