MCPcopy Create free account
hub / github.com/KDE/labplot / addLegend

Method addLegend

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:2122–2125  ·  view source on GitHub ↗

! * public helper function to set a legend object created outside of CartesianPlot, e.g. in \c OriginProjectParser. */

Source from the content-addressed store, hash-verified

2120 * public helper function to set a legend object created outside of CartesianPlot, e.g. in \c OriginProjectParser.
2121 */
2122void CartesianPlot::addLegend(CartesianPlotLegend* legend) {
2123 m_legend = legend;
2124 this->addChild(legend);
2125}
2126
2127void CartesianPlot::addLegend() {
2128 // don't do anything if there's already a legend

Callers 5

mainFunction · 0.80
mainFunction · 0.80
initPreviewMethod · 0.80
pasteMethod · 0.80
loadGraphLayerMethod · 0.80

Calls 3

addChildMethod · 0.45
retransformMethod · 0.45
setEnabledMethod · 0.45

Tested by 1

pasteMethod · 0.64