| 1301 | } |
| 1302 | |
| 1303 | void Worksheet::cursorModelPlotRemoved(const QString& name) { |
| 1304 | TreeModel* treeModel = cursorModel(); |
| 1305 | int rowCount = treeModel->rowCount(); |
| 1306 | |
| 1307 | // first is x Axis |
| 1308 | for (int i = 1; i < rowCount; i++) { |
| 1309 | QModelIndex plotIndex = treeModel->index(i, static_cast<int>(WorksheetPrivate::TreeModelColumn::PLOTNAME)); |
| 1310 | if (plotIndex.data().toString().compare(name) != 0) |
| 1311 | continue; |
| 1312 | treeModel->removeRows(plotIndex.row(), 1); |
| 1313 | return; |
| 1314 | } |
| 1315 | } |
| 1316 | |
| 1317 | void Worksheet::cartesianPlotMouseModeChangedSlot(CartesianPlot::MouseMode mode) { |
| 1318 | Q_D(Worksheet); |