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