QCAD
Open Source 2D CAD
RCustomWidgets.h
Go to the documentation of this file.
1 
20 #ifndef RCUSTOMWIDGETS_H_
21 #define RCUSTOMWIDGETS_H_
22 
23 #include <qglobal.h>
24 #if QT_VERSION >= 0x050400
25 #include <QtUiPlugin/QDesignerCustomWidgetInterface>
26 #else
27 #include <QDesignerCustomWidgetInterface>
28 #endif
29 
30 #include <QtCore/qplugin.h>
31 
32 class RCustomWidgets: public QObject,
33  public QDesignerCustomWidgetCollectionInterface {
34 
35  Q_OBJECT
36  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
37 #if QT_VERSION >= 0x050000
38  Q_PLUGIN_METADATA(IID "org.qcad.customwidgets")
39 #endif
40 
41 public:
42  RCustomWidgets(QObject *parent = 0);
43 
44  virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
45 
46 private:
47  QList<QDesignerCustomWidgetInterface*> widgets;
48 };
49 
50 #endif
QList< QDesignerCustomWidgetInterface * > widgets
Definition: RCustomWidgets.h:47
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RCustomWidgets.h:32
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
Definition: RCustomWidgets.cpp:56
RCustomWidgets(QObject *parent=0)
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RCustomWidgets.cpp:36