diff -r 966b5de3182e -r 04b93b656b60 designer/LEDPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/designer/LEDPlugin.h Tue Jun 28 20:12:16 2022 +0200 @@ -0,0 +1,39 @@ +#ifndef _LED_PLUGIN_H_ +#define _LED_PLUGIN_H_ + +#include +#include +#include +#include +#include + +class LEDPlugin; + +class LEDPlugin : public QObject, public QDesignerCustomWidgetInterface +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface") + Q_INTERFACES(QDesignerCustomWidgetInterface) + +public: + LEDPlugin(QObject* parent=0); + + QString name() const; + QString group() const; + QString toolTip() const; + QString whatsThis() const; + QString includeFile() const; + QIcon icon() const; + QString domXml() const; + + bool isContainer() const; + bool isInitialized() const; + + QWidget *createWidget(QWidget *parent); + void initialize(QDesignerFormEditorInterface *core); + +private: + bool initialized = false; +}; + +#endif