MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / setRowCount

Method setRowCount

Gui/TableModelView.cpp:614–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614void
615TableModel::setRowCount(int rows)
616{
617 if ( (rows < 0) || (_imp->rowCount == rows) ) {
618 return;
619 }
620 if (_imp->rowCount < rows) {
621 insertRows(std::max(_imp->rowCount, 0), rows - _imp->rowCount);
622 } else {
623 removeRows(std::max(rows, 0), _imp->rowCount - rows);
624 }
625}
626
627void
628TableModel::setColumnCount(int columns)

Callers 2

addTaskToTableMethod · 0.80
QDialogFunction · 0.80

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected