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 |