code format

This commit is contained in:
2022-12-14 14:14:33 +03:00
parent 09e5342956
commit cdb02fc9be
278 changed files with 15371 additions and 12176 deletions

View File

@@ -1,12 +1,12 @@
//#include "qpiconfigplugin.h"
// #include "qpiconfigplugin.h"
#include "qad_utils.h"
QADUtils::QADUtils(QObject * parent): QObject(parent) {
//m_widgets.append(new QPIConfigPlugin(this));
// m_widgets.append(new QPIConfigPlugin(this));
}
QList<QDesignerCustomWidgetInterface * > QADUtils::customWidgets() const {
QList<QDesignerCustomWidgetInterface *> QADUtils::customWidgets() const {
return m_widgets;
}

View File

@@ -1,24 +1,25 @@
#ifndef QAD_UTILS_H
#define QAD_UTILS_H
#include <QtDesigner/QtDesigner>
#include <QtCore/qplugin.h>
#include <QtDesigner/QtDesigner>
class QADUtils: public QObject, public QDesignerCustomWidgetCollectionInterface
{
class QADUtils
: public QObject
, public QDesignerCustomWidgetCollectionInterface {
Q_OBJECT
//Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
// 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;
virtual QList<QDesignerCustomWidgetInterface *> customWidgets() const;
private:
QList<QDesignerCustomWidgetInterface * > m_widgets;
QList<QDesignerCustomWidgetInterface *> m_widgets;
};
#endif // QAD_UTILS_H