cut  1.2.2-pre1
CutWidgetsCollection.hpp
Go to the documentation of this file.
1 
10 #ifndef CUTWIDGETSCOLLECTION_HPP
11 #define CUTWIDGETSCOLLECTION_HPP
12 
13 #include <QtUiPlugin/QDesignerCustomWidgetInterface>
14 #include <qplugin.h>
15 
31 class CutWidgetsCollection : public QObject, public QDesignerCustomWidgetCollectionInterface
32 {
33  Q_OBJECT
34  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
35 #if QT_VERSION >= 0x050000
36  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
37 #endif // QT_VERSION >= 0x050000
38 
39 public:
53  explicit CutWidgetsCollection(QObject *parent = 0);
54 
61  virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
62 
63 private:
65  QList<QDesignerCustomWidgetInterface*> m_widgets;
66 };
67 
68 #endif // CUTWIDGETSCOLLECTION_HPP
CutWidgetsCollection
Collection of widget plugins.
Definition: CutWidgetsCollection.hpp:32
CutWidgetsCollection::CutWidgetsCollection
CutWidgetsCollection(QObject *parent=0)
Constructor for widget plugin collection.
Definition: CutWidgetsCollection.cpp:13
CutWidgetsCollection::customWidgets
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
Returns the list of widget plugins.
Definition: CutWidgetsCollection.cpp:23