MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / legendCornerIcon

Function legendCornerIcon

pj_app/src/MainWindow.cpp:1973–1987  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 2

setLegendStatusMethod · 0.85
buildGlobalToolbarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected