! * \brief Worksheet::plot * \param index Number of plot which should be returned * \return Pointer to the CartesianPlot which was searched with index */
| 550 | * \return Pointer to the CartesianPlot which was searched with index |
| 551 | */ |
| 552 | CartesianPlot* Worksheet::plot(int index) { |
| 553 | auto plots = children<CartesianPlot>(); |
| 554 | if (plots.length() - 1 >= index) |
| 555 | return plots.at(index); |
| 556 | return nullptr; |
| 557 | } |
| 558 | |
| 559 | TreeModel* Worksheet::cursorModel() { |
| 560 | Q_D(const Worksheet); |