| 8 | return 45 - 180 * M_1_PI * std::asin(2. * gap / bounds.width()); |
| 9 | } |
| 10 | QPointF ArrowKey::rotatePoint(QPointF point, int offset) { |
| 11 | while (offset--) { |
| 12 | std::swap(point.rx() *= -1, point.ry()); |
| 13 | } |
| 14 | return point; |
| 15 | } |
| 16 | |
| 17 | ArrowKey::ArrowKey(KeyConfig &config, const QRect &outer, const QRect &inner, |
| 18 | int offset, const QString &labelText, qreal gap) |
nothing calls this directly
no outgoing calls
no test coverage detected