equal
deleted
inserted
replaced
457 if(r < 4) |
457 if(r < 4) |
458 { |
458 { |
459 l.append(center); |
459 l.append(center); |
460 } else |
460 } else |
461 { |
461 { |
462 qreal angleDelta = qMax(0.1, qMin(0.7, 120 / r)); |
462 qreal angleDelta = qMax(static_cast<qreal> (0.1), qMin(static_cast<qreal> (0.7), 120 / r)); |
463 for(qreal angle = 0.0; angle < 2*M_PI; angle += angleDelta) |
463 for(qreal angle = 0.0; angle < 2*M_PI; angle += angleDelta) |
464 l.append(center + QPointF(rx * cos(angle), ry * sin(angle))); |
464 l.append(center + QPointF(rx * cos(angle), ry * sin(angle))); |
465 l.append(l.first()); |
465 l.append(l.first()); |
466 } |
466 } |
467 |
467 |