QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RCustomWidgets.h
Go to the documentation of this file.
1 
20 #ifndef RCUSTOMWIDGETS_H_
21 #define RCUSTOMWIDGETS_H_
22 
23 #include <QtDesigner/QtDesigner>
24 #include <QtCore/qplugin.h>
25 
26 class RCustomWidgets: public QObject,
27  public QDesignerCustomWidgetCollectionInterface {
28 
29  Q_OBJECT
30  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
31 #if QT_VERSION >= 0x050000
32  Q_PLUGIN_METADATA(IID "org.qcad.customwidgets")
33 #endif
34 
35 public:
36  RCustomWidgets(QObject *parent = 0);
37 
38  virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
39 
40 private:
41  QList<QDesignerCustomWidgetInterface*> widgets;
42 };
43 
44 #endif