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

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 SKGBKWIDGETCOLLECTIONDESIGNERPLUGIN_H
0007 #define SKGBKWIDGETCOLLECTIONDESIGNERPLUGIN_H
0008 /** @file
0009  * A collection of widgets for skrooge (qt designer plugin).
0010  *
0011  * @author Stephane MANKOWSKI / Guillaume DE BURE
0012  */
0013 #include <QtUiPlugin/customwidget.h>
0014 
0015 #include "skgbankguidesigner_export.h"
0016 /**
0017  * QDesigner plugin collection
0018  */
0019 class SKGBANKGUIDESIGNER_EXPORT SKGBKWidgetCollectionDesignerPlugin: public QObject, public QDesignerCustomWidgetCollectionInterface
0020 {
0021     Q_OBJECT
0022     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
0023     Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
0024 
0025 public:
0026     /**
0027      * Constructor
0028      * @param iParent the parent
0029      */
0030     explicit SKGBKWidgetCollectionDesignerPlugin(QObject* iParent = nullptr);
0031 
0032     /**
0033      * To get the list of widgets
0034      * @return the list of widgets
0035      */
0036     QList<QDesignerCustomWidgetInterface*> customWidgets() const override;
0037 
0038 private:
0039     QList<QDesignerCustomWidgetInterface*> m_widgets;
0040 };
0041 
0042 #endif  // SKGBKWIDGETCOLLECTIONDESIGNERPLUGIN_H