Files
qad/libs/utils/plugin/qad_utils.h
2020-08-25 22:24:02 +03:00

25 lines
611 B
C++

#ifndef QAD_UTILS_H
#define QAD_UTILS_H
#include <QtDesigner/QtDesigner>
#include <QtCore/qplugin.h>
class QADUtils: public QObject, public QDesignerCustomWidgetCollectionInterface
{
Q_OBJECT
//Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "qad.utils")
#endif
Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
public:
explicit QADUtils(QObject * parent = 0);
virtual QList<QDesignerCustomWidgetInterface * > customWidgets() const;
private:
QList<QDesignerCustomWidgetInterface * > m_widgets;
};
#endif // QAD_UTILS_H