gui.cpp

changeset 113
bbaa40226ec9
parent 112
fa2f00081357
child 114
fe1bfc5f59ed
--- a/gui.cpp	Tue Apr 16 03:49:06 2013 +0300
+++ b/gui.cpp	Tue Apr 16 14:36:56 2013 +0300
@@ -563,7 +563,7 @@
 			{
 				LDRadial* pRad = static_cast<LDRadial*> (obj);
 				zText.format ("%d / %d %s", pRad->dSegments, pRad->dDivisions,
-					g_saRadialTypeNames[pRad->eRadialType]);
+					pRad->radialTypeName());
 				
 				if (pRad->eRadialType == LDRadial::Ring || pRad->eRadialType == LDRadial::Cone)
 					zText.appendformat (" %d", pRad->dRingNum);
@@ -579,9 +579,9 @@
 		
 		QTreeWidgetItem* item = new QTreeWidgetItem ((QTreeWidget*) (null),
 			QStringList (zText.chars()), 0);
-		item->setIcon (0, QIcon (str::mkfmt ("icons/%s.png", g_saObjTypeIcons[obj->getType ()]).chars()));
+		item->setIcon (0, getIcon (g_saObjTypeIcons[obj->getType ()]));
 		
-		// Color gibberish red
+		// Color gibberish orange on red so it stands out.
 		if (obj->getType() == OBJ_Gibberish) {
 			item->setBackground (0, QColor ("#AA0000"));
 			item->setForeground (0, QColor ("#FFAA00"));

mercurial