Files
qt-creator/share/qtcreator/templates/qt4project/customwidgetwizard/tpl_collection.h
Friedemann Kleint ea0d68f7d4 Qt Designer custom widget wizard: Write plugins compatible with Qt 4 / 5.
Generate plugin metadata for Qt 5 or plugin export for Qt 4.

Change-Id: I9888ebb22204c96755f82efc0dd2bceb51a19b0c
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-02-13 13:45:43 +01:00

23 lines
540 B
C++

#ifndef @COLLECTION_INCLUDE_GUARD@
#define @COLLECTION_INCLUDE_GUARD@
#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 = 0);
virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
private:
QList<QDesignerCustomWidgetInterface*> m_widgets;
};
#endif