File indexing completed on 2024-04-21 16:33:53

0001 /*
0002     This file is part of the Okteta Designer plugin, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef OKTETAWIDGETDESIGNERFACTORYCOLLECTION_HPP
0010 #define OKTETAWIDGETDESIGNERFACTORYCOLLECTION_HPP
0011 
0012 // Qt
0013 #include <QDesignerCustomWidgetCollectionInterface>
0014 #include <QObject>
0015 
0016 class OktetaWidgetDesignerFactoryCollection : public QObject
0017                                             , public QDesignerCustomWidgetCollectionInterface
0018 {
0019     Q_OBJECT
0020     Q_INTERFACES(
0021         QDesignerCustomWidgetCollectionInterface
0022     )
0023 
0024     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
0025 
0026 public:
0027     explicit OktetaWidgetDesignerFactoryCollection(QObject* parent = nullptr);
0028 
0029 public: // QDesignerCustomWidgetCollectionInterface API
0030     QList<QDesignerCustomWidgetInterface*> customWidgets() const override;
0031 
0032 private:
0033     QList<QDesignerCustomWidgetInterface*> mWidgetFactories;
0034 };
0035 
0036 #endif