SVG path for the legend button when the legend is at the given corner. kHidden is never a valid argument — callers must remap to the saved corner (previous_legend_corner_) before looking up the icon.
| 1971 | // kHidden is never a valid argument — callers must remap to the saved |
| 1972 | // corner (previous_legend_corner_) before looking up the icon. |
| 1973 | [[nodiscard]] QString legendCornerIcon(LegendStatus corner) { |
| 1974 | switch (corner) { |
| 1975 | case LegendStatus::kBottomRight: |
| 1976 | return QStringLiteral(":/resources/svg/position_bottom_right.svg"); |
| 1977 | case LegendStatus::kBottomLeft: |
| 1978 | return QStringLiteral(":/resources/svg/position_bottom_left.svg"); |
| 1979 | case LegendStatus::kTopRight: |
| 1980 | return QStringLiteral(":/resources/svg/position_top_right.svg"); |
| 1981 | case LegendStatus::kTopLeft: |
| 1982 | return QStringLiteral(":/resources/svg/position_top_left.svg"); |
| 1983 | case LegendStatus::kHidden: |
| 1984 | return QStringLiteral(":/resources/svg/position_top_right.svg"); |
| 1985 | } |
| 1986 | return QStringLiteral(":/resources/svg/position_top_right.svg"); |
| 1987 | } |
| 1988 | |
| 1989 | // Four-corner forward cycle. Used while the legend is visible to walk |
| 1990 | // TR → TL → BL → BR; the BR-to-hidden wrap and the hidden-to-visible |
no outgoing calls
no test coverage detected