widgets/designerplugins.cpp

changeset 256
c6f5de03dc0f
parent 254
b7b29cb82360
child 264
76a025db4948
--- a/widgets/designerplugins.cpp	Wed Jun 22 22:50:37 2022 +0300
+++ b/widgets/designerplugins.cpp	Wed Jun 22 22:59:56 2022 +0300
@@ -1,12 +1,14 @@
 #include "designerplugins.h"
 #include "vec3editor.h"
 #include "matrixeditor.h"
+#include "colorbutton.h"
 
 LDForgeWidgetCollection::LDForgeWidgetCollection(QObject* parent) :
 	QObject{parent}
 {
 	this->interfaces.append(new Vec3EditorPlugin{this});
 	this->interfaces.append(new MatrixEditorPlugin{this});
+	this->interfaces.append(new ColorButtonPlugin{this});
 }
 
 QList<QDesignerCustomWidgetInterface*> LDForgeWidgetCollection::customWidgets() const
@@ -93,3 +95,44 @@
 {
 	return new MatrixEditor{parent};
 }
+
+
+QString ColorButtonPlugin::name() const
+{
+	return "ColorButton";
+}
+
+QString ColorButtonPlugin::group() const
+{
+	return "LDForge";
+}
+
+QString ColorButtonPlugin::toolTip() const
+{
+	return "";
+}
+
+QString ColorButtonPlugin::whatsThis() const
+{
+	return "";
+}
+
+QString ColorButtonPlugin::includeFile() const
+{
+	return "colorbutton.h";
+}
+
+QIcon ColorButtonPlugin::icon() const
+{
+	return {};
+}
+
+bool ColorButtonPlugin::isContainer() const
+{
+	return false;
+}
+
+QWidget* ColorButtonPlugin::createWidget(QWidget* parent)
+{
+	return new ColorButton{parent};
+}

mercurial