src/toolsets/viewtoolset.cpp

changeset 1215
77a0270352a3
parent 1012
413ecd6b9801
child 1217
314e12e23c3a
--- a/src/toolsets/viewtoolset.cpp	Thu Jan 04 19:24:40 2018 +0200
+++ b/src/toolsets/viewtoolset.cpp	Thu Jan 04 19:40:16 2018 +0200
@@ -126,7 +126,7 @@
 
 void ViewToolset::axes()
 {
-	Config->setDrawAxes (not Config->drawAxes());
+	config.setDrawAxes (not config.drawAxes());
 	m_window->updateActions();
 	m_window->renderer()->update();
 }
@@ -151,7 +151,7 @@
 
 void ViewToolset::wireframe()
 {
-	Config->setDrawWireframe (not Config->drawWireframe());
+	config.setDrawWireframe (not config.drawWireframe());
 	m_window->renderer()->refresh();
 }
 
@@ -173,7 +173,7 @@
 
 void ViewToolset::drawAngles()
 {
-	Config->setDrawAngles (not Config->drawAngles());
+	config.setDrawAngles (not config.drawAngles());
 	m_window->renderer()->refresh();
 }
 
@@ -242,10 +242,10 @@
 
 void ViewToolset::bfcView()
 {
-	Config->setBfcRedGreenView (not Config->bfcRedGreenView());
+	config.setBfcRedGreenView (not config.bfcRedGreenView());
 
-	if (Config->bfcRedGreenView())
-		Config->setRandomColors (false);
+	if (config.bfcRedGreenView())
+		config.setRandomColors (false);
 
 	m_window->updateActions();
 	m_window->renderer()->refresh();
@@ -273,10 +273,10 @@
 
 void ViewToolset::randomColors()
 {
-	Config->setRandomColors (not Config->randomColors());
+	config.setRandomColors (not config.randomColors());
 
-	if (Config->randomColors())
-		Config->setBfcRedGreenView (false);
+	if (config.randomColors())
+		config.setBfcRedGreenView (false);
 
 	m_window->updateActions();
 	m_window->renderer()->refresh();
@@ -284,18 +284,18 @@
 
 void ViewToolset::drawSurfaces()
 {
-	Config->setDrawSurfaces (not Config->drawSurfaces());
+	config.setDrawSurfaces (not config.drawSurfaces());
 	m_window->updateActions();
 }
 
 void ViewToolset::drawEdgeLines()
 {
-	Config->setDrawEdgeLines (not Config->drawEdgeLines());
+	config.setDrawEdgeLines (not config.drawEdgeLines());
 	m_window->updateActions();
 }
 
 void ViewToolset::drawConditionalLines()
 {
-	Config->setDrawConditionalLines (not Config->drawConditionalLines());
+	config.setDrawConditionalLines (not config.drawConditionalLines());
 	m_window->updateActions();
 }
\ No newline at end of file

mercurial