src/primitives.cpp

changeset 1339
1f342d5abc85
parent 1334
3ab821604a70
child 1340
ea1b3ea9a3ca
equal deleted inserted replaced
1338:1152c9fefa3e 1339:1f342d5abc85
432 numerator *= factor; 432 numerator *= factor;
433 denominator *= factor; 433 denominator *= factor;
434 } 434 }
435 435
436 // Compose some general information: prefix, fraction, root, ring number 436 // Compose some general information: prefix, fraction, root, ring number
437 QString prefix = (divisions == LowResolution) ? "" : format ("%1/", divisions); 437 QString prefix = (divisions == MediumResolution) ? "" : format ("%1\\", divisions);
438 QString frac = format ("%1-%2", numerator, denominator); 438 QString frac = format ("%1-%2", numerator, denominator);
439 static const char* roots[] = {"edge", "cyli", "disc", "ndis", "ring", "con"}; 439 static const char* roots[] = {"edge", "cyli", "disc", "ndis", "ring", "con"};
440 QString root = roots[type]; 440 QString root = roots[type];
441 QString numberString = (type == Ring or type == Cone) ? format ("%1", ringNumber) : ""; 441 QString numberString = (type == Ring or type == Cone) ? format ("%1", ringNumber) : "";
442 442

mercurial