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

Method setHorizontalHeaderLabels

Gui/TableModelView.cpp:1153–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151}
1152
1153void
1154TableView::setHorizontalHeaderLabels(const QStringList &labels)
1155{
1156 TableItem *item = 0;
1157
1158 for (int i = 0; i < _imp->model->columnCount() && i < labels.count(); ++i) {
1159 item = _imp->model->horizontalHeaderItem(i);
1160 if (!item) {
1161 item = _imp->model->createItem();
1162 setHorizontalHeaderItem(i, item);
1163 }
1164 item->setText( labels.at(i) );
1165 }
1166}
1167
1168TableItem*
1169TableView::horizontalHeaderItem(int column) const

Callers 5

ProgressPanelMethod · 0.80
createWidgetMethod · 0.80
TrackerPanelMethod · 0.80
RenderStatsDialogMethod · 0.80

Calls 6

horizontalHeaderItemMethod · 0.80
atMethod · 0.80
columnCountMethod · 0.45
countMethod · 0.45
createItemMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected