File indexing completed on 2024-04-28 16:30:28

0001 /***************************************************************************
0002  * SPDX-FileCopyrightText: 2022 S. MANKOWSKI stephane@mankowski.fr
0003  * SPDX-FileCopyrightText: 2022 G. DE BURE support@mankowski.fr
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  ***************************************************************************/
0006 #ifndef SKGWIDGETCOLLECTIONDESIGNERPLUGIN_H
0007 #define SKGWIDGETCOLLECTIONDESIGNERPLUGIN_H
0008 /** @file
0009  * A collection of widgets (qt designer plugin).
0010  *
0011  * @author Stephane MANKOWSKI / Guillaume DE BURE
0012  */
0013 #include <QtUiPlugin/customwidget.h>
0014 
0015 
0016 #include "skgbaseguidesigner_export.h"
0017 /**
0018  * QDesigner plugin collection
0019  */
0020 class SKGBASEGUIDESIGNER_EXPORT SKGWidgetCollectionDesignerPlugin: public QObject, public QDesignerCustomWidgetCollectionInterface
0021 {
0022     Q_OBJECT
0023     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
0024     Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
0025 
0026 public:
0027     /**
0028      * Constructor
0029      * @param iParent the parent
0030      */
0031     explicit SKGWidgetCollectionDesignerPlugin(QObject* iParent = nullptr);
0032 
0033     /**
0034      * To get the list of widgets
0035      * @return the list of widgets
0036      */
0037     QList<QDesignerCustomWidgetInterface*> customWidgets() const override;
0038 
0039 private:
0040     QList<QDesignerCustomWidgetInterface*> m_widgets;
0041 };
0042 
0043 #endif  // SKGWIDGETCOLLECTIONDESIGNERPLUGIN_H