MCPcopy Create free account
hub / github.com/MrKepzie/Natron / addTaskToTable

Method addTaskToTable

Gui/ProgressPanel.cpp:502–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void
503ProgressPanel::addTaskToTable(const ProgressTaskInfoPtr& task)
504{
505 assert( QThread::currentThread() == qApp->thread() );
506 int rc = _imp->view->rowCount();
507 _imp->view->setRowCount(rc + 1);
508
509 std::vector<TableItem*> items;
510 task->getTableItems(&items);
511 assert(items.size() == COL_LAST);
512
513 for (std::size_t i = 0; i < items.size(); ++i) {
514 _imp->view->setItem(rc, i, items[i]);
515 }
516 task->setCellWidgets(rc, _imp->view);
517
518 _imp->lastTaskAdded = task;
519 _imp->tasksOrdered.push_back(task);
520}
521
522void
523ProgressPanel::doProgressOnMainThread(const ProgressTaskInfoPtr& task,

Callers 1

createItemsMethod · 0.80

Calls 7

setRowCountMethod · 0.80
getTableItemsMethod · 0.80
setItemMethod · 0.80
setCellWidgetsMethod · 0.80
rowCountMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected