src/linetypes/circularprimitive.h

changeset 1418
503d4e7e27c9
parent 1412
f5eb947a2e7f
--- a/src/linetypes/circularprimitive.h	Thu Jun 21 18:46:03 2018 +0300
+++ b/src/linetypes/circularprimitive.h	Thu Jun 21 19:21:49 2018 +0300
@@ -35,6 +35,8 @@
 	void setSegments(int newSegments);
 	int divisions() const;
 	void setDivisions(int newDivisions);
+	const CircularSection& section() const;
+	void setSection(const CircularSection& newSection);
 	int triangleCount(DocumentManager*) const override;
 	QString iconName() const override;
 	void serialize(class Serializer& serializer) override;
@@ -45,6 +47,5 @@
 	QString stem() const;
 
 	PrimitiveModel::Type m_type = PrimitiveModel::Circle;
-	int m_segments = MediumResolution;
-	int m_divisions = MediumResolution;
+	CircularSection m_section;
 };

mercurial