// DO NOT EDIT! Generated from ecm_add_qtdesignerplugin()

#include <QDesignerCustomWidgetCollectionInterface>
#include <QDesignerCustomWidgetInterface>
#include <QObject>
#include <QIcon>
#include <QString>
#include <sonnet/dictionarycombobox.h>

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

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

    ~Sonnet__DictionaryComboBoxQtDesignerWidgetFactory() 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("Sonnet (KF5)"); }
    QString includeFile() const override { return QStringLiteral("sonnet/dictionarycombobox.h"); }
    QString name() const override { return QStringLiteral("Sonnet::DictionaryComboBox"); }
    QString toolTip() const override { return QStringLiteral("Dictionary Combobox"); }
    QString whatsThis() const override { return QStringLiteral("A combobox to select a dictionary for spellchecking"); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new Sonnet::DictionaryComboBox(parent);
    }

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

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

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

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

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

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

private:
    QList<QDesignerCustomWidgetInterface*> m_widgetFactories;
};

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

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

#include "designerplugin.moc"
