src/linetypes/conditionaledge.h

changeset 1269
ec691d9472b3
parent 1261
5d2c9d36da9d
child 1326
69a90bd2dba2
--- a/src/linetypes/conditionaledge.h	Sat Mar 03 17:59:56 2018 +0200
+++ b/src/linetypes/conditionaledge.h	Mon Mar 05 22:40:34 2018 +0200
@@ -25,11 +25,14 @@
 class LDConditionalEdge : public LDEdgeLine
 {
 public:
-	static constexpr LDObjectType SubclassType = LDObjectType::ConditionalEdge;
+	static const LDObjectType SubclassType = LDObjectType::ConditionalEdge;
+
+	LDConditionalEdge() = default;
+	LDConditionalEdge(const Vertex& v0, const Vertex& v1, const Vertex& v2, const Vertex& v3);
 
 	virtual LDObjectType type() const override
 	{
-		return SubclassType;
+		return LDObjectType::ConditionalEdge;
 	}
 
 	virtual QString asText() const override;
@@ -37,9 +40,4 @@
 	int numPolygonVertices() const override { return 2; }
 	LDColor defaultColor() const override { return EdgeColor; }
 	QString typeName() const override { return "condline"; }
-
-protected:
-	friend class Model;
-	LDConditionalEdge (Model* model);
-	LDConditionalEdge (const Vertex& v0, const Vertex& v1, const Vertex& v2, const Vertex& v3, Model* model = nullptr);
 };

mercurial