0031866: Documentation - add description to Graphic3d_NameOfMaterial enumeration...
[occt.git] / samples / qt / Tutorial / src / DocumentTut.cxx
index 8a579a8..e8f7502 100755 (executable)
@@ -26,7 +26,7 @@ void DocumentTut::onMakeBottle()
     QApplication::setOverrideCursor( Qt::WaitCursor );
     TopoDS_Shape aBottle=MakeBottle(50,70,30);
     Handle(AIS_Shape) AISBottle=new AIS_Shape(aBottle);
-    getContext()->SetMaterial (AISBottle, Graphic3d_NOM_GOLD, Standard_False);
+    getContext()->SetMaterial (AISBottle, Graphic3d_NameOfMaterial_Gold, Standard_False);
     getContext()->SetDisplayMode(AISBottle, 1, Standard_False);
     getContext()->Display(AISBottle, Standard_False);  
     const Handle(AIS_InteractiveObject)& anIOAISBottle = AISBottle;