-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgaugewidgetplugin.h
31 lines (26 loc) · 1019 Bytes
/
qgaugewidgetplugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef QGAUGEWIDGETPLUGIN_H
#define QGAUGEWIDGETPLUGIN_H
#include <QObject>
#include <QtUiPlugin>
class Q_DECL_EXPORT QGaugeWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
// Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
explicit QGaugeWidgetPlugin(QObject *parent = nullptr);
bool isContainer() const override;
bool isInitialized() const override;
QIcon icon() const override;
QString domXml() const override;
QString group() const override;
QString includeFile() const override;
QString name() const override;
QString toolTip() const override;
QString whatsThis() const override;
QWidget *createWidget(QWidget *parent) override;
void initialize(QDesignerFormEditorInterface *core) override;
private:
bool m_initialized = false;
};
#endif // QGAUGEWIDGETPLUGIN_H