QtPdWidgets  2.3.1
WidgetCollection.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2009-2014 Florian Pose <fp@igh-essen.com>
4  *
5  * This file is part of the QtPdWidgets library.
6  *
7  * The QtPdWidgets library is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation, either version 3 of the License,
10  * or (at your option) any later version.
11  *
12  * The QtPdWidgets library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with the QtPdWidgets Library. If not, see
19  * <http://www.gnu.org/licenses/>.
20  *
21  ****************************************************************************/
22 
23 #ifndef WIDGETCOLLECTION_H
24 #define WIDGETCOLLECTION_H
25 
26 #include <QtDesigner>
27 #include <qplugin.h>
28 
29 /****************************************************************************/
30 
34  public QObject,
35  public QDesignerCustomWidgetCollectionInterface
36 {
37  Q_OBJECT
38  Q_PLUGIN_METADATA(IID
39  "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
40  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
41 
42  public:
43  WidgetCollection(QObject *parent = 0);
44  virtual ~WidgetCollection();
45 
46  virtual QList<QDesignerCustomWidgetInterface *> customWidgets() const;
47 
48  private:
50  QList<QDesignerCustomWidgetInterface *> widgets;
51 };
52 
53 /****************************************************************************/
54 
55 #endif
QList< QDesignerCustomWidgetInterface * > widgets
The list of custom widgets for the designer.
Definition: WidgetCollection.h:50
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
Returns the list of the provided plugins.
Definition: WidgetCollection.cpp:403
Container class for the list of provided plugins.
Definition: WidgetCollection.h:33