2019-01-03 10:56:36 +01:00
|
|
|
@if '%{Cpp:PragmaOnce}'
|
|
|
|
|
#pragma once
|
|
|
|
|
@else
|
2009-06-29 14:47:04 +02:00
|
|
|
#ifndef @SINGLE_INCLUDE_GUARD@
|
|
|
|
|
#define @SINGLE_INCLUDE_GUARD@
|
2019-01-03 10:56:36 +01:00
|
|
|
@endif
|
2009-06-29 14:47:04 +02:00
|
|
|
|
|
|
|
|
#include <QDesignerCustomWidgetInterface>
|
|
|
|
|
|
|
|
|
|
class @PLUGIN_CLASS@ : public QObject, public QDesignerCustomWidgetInterface
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_INTERFACES(QDesignerCustomWidgetInterface)
|
2013-02-12 14:15:31 +01:00
|
|
|
@SINGLE_PLUGIN_METADATA@
|
2009-06-29 14:47:04 +02:00
|
|
|
|
|
|
|
|
public:
|
2023-03-01 09:08:56 +01:00
|
|
|
explicit @PLUGIN_CLASS@(QObject *parent = nullptr);
|
2009-06-29 14:47:04 +02:00
|
|
|
|
2023-03-01 09:08:56 +01:00
|
|
|
bool isContainer() const override;
|
|
|
|
|
bool isInitialized() const override;
|
|
|
|
|
QIcon icon() const override;
|
|
|
|
|
QString domXml() const override;
|
|
|
|
|
QString group() const override;
|
|
|
|
|
QString includeFile() const override;
|
|
|
|
|
QString name() const override;
|
|
|
|
|
QString toolTip() const override;
|
|
|
|
|
QString whatsThis() const override;
|
|
|
|
|
QWidget *createWidget(QWidget *parent) override;
|
|
|
|
|
void initialize(QDesignerFormEditorInterface *core) override;
|
2009-06-29 14:47:04 +02:00
|
|
|
|
|
|
|
|
private:
|
2023-03-01 09:08:56 +01:00
|
|
|
bool m_initialized = false;
|
2009-06-29 14:47:04 +02:00
|
|
|
};
|
|
|
|
|
|
2019-01-03 10:56:36 +01:00
|
|
|
@if ! '%{Cpp:PragmaOnce}'
|
|
|
|
|
#endif // @SINGLE_INCLUDE_GUARD@
|
|
|
|
|
@endif
|