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

Method addTaskToTable

Gui/ProgressPanel.cpp:511–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void
512ProgressPanel::addTaskToTable(const ProgressTaskInfoPtr& task)
513{
514 assert( QThread::currentThread() == qApp->thread() );
515 int rc = _imp->view->rowCount();
516 _imp->view->setRowCount(rc + 1);
517
518 std::vector<TableItem*> items;
519 task->getTableItems(&items);
520 assert(items.size() == COL_LAST);
521
522 for (std::size_t i = 0; i < items.size(); ++i) {
523 _imp->view->setItem(rc, i, items[i]);
524 }
525 task->setCellWidgets(rc, _imp->view);
526
527 _imp->lastTaskAdded = task;
528 _imp->tasksOrdered.push_back(task);
529}
530
531void
532ProgressPanel::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