QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
32class 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
41public:
42 RCustomWidgets(QObject *parent = 0);
43
44 virtual QList<QDesignerCustomWidgetInterface*> customWidgets() const;
45
46private:
47 QList<QDesignerCustomWidgetInterface*> widgets;
48};
49
50#endif
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RCustomWidgets.h:33
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
Definition RCustomWidgets.cpp:60
QList< QDesignerCustomWidgetInterface * > widgets
Definition RCustomWidgets.h:47
RCustomWidgets(QObject *parent=0)
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RCustomWidgets.cpp:38