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

Method cursorModelPlotRemoved

src/backend/worksheet/Worksheet.cpp:1303–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303void 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
1317void Worksheet::cartesianPlotMouseModeChangedSlot(CartesianPlot::MouseMode mode) {
1318 Q_D(Worksheet);

Callers

nothing calls this directly

Calls 6

rowCountMethod · 0.45
indexMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
removeRowsMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected