| 41 | namespace { |
| 42 | |
| 43 | [[nodiscard]] bool isUsableRect(const QRectF& rect) noexcept { |
| 44 | return rect.width() >= 0.0 && rect.height() >= 0.0 && std::isfinite(rect.left()) && std::isfinite(rect.right()) && |
| 45 | std::isfinite(rect.top()) && std::isfinite(rect.bottom()); |
| 46 | } |
| 47 | |
| 48 | [[nodiscard]] QColor colorFromIndex(int index) { |
| 49 | static const std::array<QColor, 8> k_colors = { |
no test coverage detected