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

Method setColumnCount

Gui/TableModelView.cpp:627–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627void
628TableModel::setColumnCount(int columns)
629{
630 int cc = (int)_imp->horizontalHeaderItems.size();
631
632 if ( (columns < 0) || (cc == columns) ) {
633 return;
634 }
635 if (cc < columns) {
636 insertColumns(std::max(cc, 0), columns - cc);
637 } else {
638 removeColumns(std::max(columns, 0), cc - columns);
639 }
640}
641
642int
643TableModel::rowCount(const QModelIndex &parent) const

Callers 11

ProgressPanelMethod · 0.80
RotoPanelMethod · 0.80
createWidgetMethod · 0.80
TrackerPanelMethod · 0.80
QDialogFunction · 0.80
createShortcutEditorMethod · 0.80
createGuiMethod · 0.80
RenderStatsDialogMethod · 0.80
CurveEditorMethod · 0.80
createWidgetMethod · 0.80

Calls 2

maxFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected