// DO NOT EDIT! Generated from ecm_add_qtdesignerplugin()

#include <QDesignerCustomWidgetCollectionInterface>
#include <QDesignerCustomWidgetInterface>
#include <QObject>
#include <QIcon>
#include <QString>
#include <KNSWidgets/Button>

class KNSWidgets__ButtonQtDesignerWidgetFactory
    : public QObject
    , public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
    explicit KNSWidgets__ButtonQtDesignerWidgetFactory(QObject *parent = nullptr)
        : QObject(parent)
        , m_initialized(false)
    {}

    ~KNSWidgets__ButtonQtDesignerWidgetFactory() override {}
    
public: // QDesignerCustomWidgetInterface API
    bool isInitialized() const override { return m_initialized; }

    bool isContainer() const override { return false; }
    QIcon icon() const override { return QIcon(); }
    QString group() const override { return QStringLiteral("Buttons (KF6)"); }
    QString includeFile() const override { return QStringLiteral("KNSWidgets/Button"); }
    QString name() const override { return QStringLiteral("KNSWidgets::Button"); }
    QString toolTip() const override { return QStringLiteral("KHotNewStuff push button that encapsulats most of the details involved in using KHotNewStuff in it."); }
    QString whatsThis() const override { return QStringLiteral("KHotNewStuff push button that encapsulats most of the details involved in using KHotNewStuff in it."); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new KNSWidgets::Button(parent);
    }

    void initialize(QDesignerFormEditorInterface* core) override 
    {
        Q_UNUSED(core);

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

class KNewStuffWidgetsQtDesignerWidgetCollection
    : public QObject
    , public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_INTERFACES(
        QDesignerCustomWidgetCollectionInterface
    )

    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")

public:
    explicit KNewStuffWidgetsQtDesignerWidgetCollection(QObject* parent = nullptr);

public: // QDesignerCustomWidgetCollectionInterface API
    QList<QDesignerCustomWidgetInterface*> customWidgets() const override;

private:
    QList<QDesignerCustomWidgetInterface*> m_widgetFactories;
};

KNewStuffWidgetsQtDesignerWidgetCollection::KNewStuffWidgetsQtDesignerWidgetCollection(QObject* parent)
    : QObject(parent)
{
    m_widgetFactories = QList<QDesignerCustomWidgetInterface*>{
        new KNSWidgets__ButtonQtDesignerWidgetFactory(this),
    };
}

QList<QDesignerCustomWidgetInterface*> KNewStuffWidgetsQtDesignerWidgetCollection::customWidgets() const
{
    return m_widgetFactories;
}

#include "designerplugin.moc"
