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

Method setRowCount

src/backend/matrix/Matrix.cpp:246–257  ·  view source on GitHub ↗

############################################################################## ################# setter methods and undo commands ########################## ##############################################################################

Source from the content-addressed store, hash-verified

244// ################# setter methods and undo commands ##########################
245// ##############################################################################
246void Matrix::setRowCount(int count) {
247 Q_D(const Matrix);
248 const auto currCount = d->rowCount();
249 if (count == currCount)
250 return;
251
252 const int diff = count - currCount;
253 if (diff > 0)
254 appendRows(diff);
255 else if (diff < 0)
256 removeRows(currCount + diff, -diff);
257}
258
259void Matrix::setColumnCount(int count) {
260 Q_D(const Matrix);

Callers 15

showFitResultMethod · 0.45
updateRangeListMethod · 0.45
updatePlotRangeListMethod · 0.45
rowCountChangedMethod · 0.45
showValueLabelsMethod · 0.45
rowCountChangedMethod · 0.45
sheetSelectionChangedMethod · 0.45
refreshPreviewMethod · 0.45
updateContentMethod · 0.45

Calls 1

rowCountMethod · 0.45