Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
811 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2018 Victor Wåhlström <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef _KRITADESIGNERPLUGINCOLLECTION_H_
#define _KRITADESIGNERPLUGINCOLLECTION_H_

#include <QtDesigner/QtDesigner>
#include <QtCore/qplugin.h>


class KritaDesignerPluginCollection : public QObject, public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
    Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)

public:
    KritaDesignerPluginCollection(QObject *parent = nullptr);

    QList<QDesignerCustomWidgetInterface*> customWidgets() const override;

private:
    QList<QDesignerCustomWidgetInterface*> m_widgets;
};

#endif // _KRITADESIGNERPLUGINCOLLECTION_H_