src/grid.cpp

changeset 1323
05b3e173c900
parent 1184
393babf1319d
child 1326
69a90bd2dba2
--- a/src/grid.cpp	Sat Mar 24 12:09:26 2018 +0200
+++ b/src/grid.cpp	Sat Mar 24 12:34:20 2018 +0200
@@ -25,24 +25,24 @@
 
 qreal Grid::coordinateSnap() const
 {
-	switch (m_config->grid())
+	switch (config::grid())
 	{
 	default:
-	case Grid::Coarse: return m_config->gridCoarseCoordinateSnap();
-	case Grid::Medium: return m_config->gridMediumCoordinateSnap();
-	case Grid::Fine: return m_config->gridFineCoordinateSnap();
+	case Grid::Coarse: return config::gridCoarseCoordinateSnap();
+	case Grid::Medium: return config::gridMediumCoordinateSnap();
+	case Grid::Fine: return config::gridFineCoordinateSnap();
 	}
 }
 
 
 qreal Grid::angleSnap() const
 {
-	switch (m_config->grid())
+	switch (config::grid())
 	{
 	default:
-	case Grid::Coarse: return m_config->gridCoarseAngleSnap();
-	case Grid::Medium: return m_config->gridMediumAngleSnap();
-	case Grid::Fine: return m_config->gridFineAngleSnap();
+	case Grid::Coarse: return config::gridCoarseAngleSnap();
+	case Grid::Medium: return config::gridMediumAngleSnap();
+	case Grid::Fine: return config::gridFineAngleSnap();
 	}
 }
 
@@ -55,12 +55,12 @@
 
 int Grid::bezierCurveSegments() const
 {
-	switch (m_config->grid())
+	switch (config::grid())
 	{
 	default:
-	case Grid::Coarse: return m_config->gridCoarseBezierCurveSegments();
-	case Grid::Medium: return m_config->gridMediumBezierCurveSegments();
-	case Grid::Fine: return m_config->gridFineBezierCurveSegments();
+	case Grid::Coarse: return config::gridCoarseBezierCurveSegments();
+	case Grid::Medium: return config::gridMediumBezierCurveSegments();
+	case Grid::Fine: return config::gridFineBezierCurveSegments();
 	}
 }
 
@@ -104,7 +104,7 @@
  */
 int Grid::polarDivisions() const
 {
-	switch (m_config->grid())
+	switch (config::grid())
 	{
 	default:
 	case Coarse:
@@ -121,5 +121,5 @@
  */
 Grid::Type Grid::type() const
 {
-	return m_config->polarGrid() ? Polar : Cartesian;
+	return config::polarGrid() ? Polar : Cartesian;
 }

mercurial