zz_configDialog.cpp

changeset 52
d71226763607
parent 47
9dd536c1ce39
child 53
170cdffe1056
--- a/zz_configDialog.cpp	Wed Mar 20 21:47:33 2013 +0200
+++ b/zz_configDialog.cpp	Wed Mar 20 23:06:30 2013 +0200
@@ -53,6 +53,9 @@
 	connect (qGLForegroundButton, SIGNAL (clicked ()),
 		this, SLOT (slot_setGLForeground ()));
 	
+	qLVColorize = new QCheckBox ("Colorize polygons in list view");
+	qLVColorize->setCheckState (lv_colorize ? Qt::Checked : Qt::Unchecked);
+	
 	IMPLEMENT_DIALOG_BUTTONS
 	
 	QGridLayout* layout = new QGridLayout;
@@ -65,7 +68,9 @@
 	layout->addWidget (qGLForegroundLabel, 1, 2);
 	layout->addWidget (qGLForegroundButton, 1, 3);
 	
-	layout->addWidget (qButtons, 2, 2, 1, 2);
+	layout->addWidget (qLVColorize, 2, 0, 1, 2);
+	
+	layout->addWidget (qButtons, 3, 2, 1, 2);
 	setLayout (layout);
 	
 	setWindowTitle (APPNAME_DISPLAY " - editing settings");
@@ -133,6 +138,7 @@
 	
 	if (dlg.exec ()) {
 		io_ldpath = dlg.qLDrawPath->text();
+		lv_colorize = dlg.qLVColorize->checkState() == Qt::Checked;
 		
 		// Save the config
 		config::save ();
@@ -141,5 +147,6 @@
 		reloadAllSubfiles ();
 		
 		window->R->setColor (gl_bgcolor, glClearColor);
+		window->refresh ();
 	}
 }
\ No newline at end of file

mercurial