widgets/designerplugins.h

changeset 349
673b8dffbe14
parent 269
593545977c5e
equal deleted inserted replaced
348:98776f54a8d0 349:673b8dffbe14
46 QIcon icon() const override; 46 QIcon icon() const override;
47 bool isContainer() const override; 47 bool isContainer() const override;
48 QWidget* createWidget(QWidget* parent) override; 48 QWidget* createWidget(QWidget* parent) override;
49 }; 49 };
50 50
51 class ColorButtonPlugin final : public QObject, public QDesignerCustomWidgetInterface 51 class ColorEditPlugin final : public QObject, public QDesignerCustomWidgetInterface
52 { 52 {
53 Q_OBJECT 53 Q_OBJECT
54 Q_INTERFACES(QDesignerCustomWidgetInterface) 54 Q_INTERFACES(QDesignerCustomWidgetInterface)
55 public: 55 public:
56 ColorButtonPlugin(QObject* parent) : QObject{parent}{} 56 ColorEditPlugin(QObject* parent) : QObject{parent}{}
57 // QDesignerCustomWidgetInterface interface 57 // QDesignerCustomWidgetInterface interface
58 QString name() const override; 58 QString name() const override;
59 QString group() const override; 59 QString group() const override;
60 QString toolTip() const override; 60 QString toolTip() const override;
61 QString whatsThis() const override; 61 QString whatsThis() const override;

mercurial