MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / multiFilesRefresh

Method multiFilesRefresh

src/taskeditwidget.cpp:464–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464void TaskEditWidget::multiFilesRefresh() {
465 if (! editTask)
466 return;
467
468 if (editTask->getTaskType() != Task::Communication && editTask->getTaskType() != Task::CommunicationExec)
469 return;
470
471 QStringList sourcePaths = editTask->getSourceFilesPath();
472 QStringList sourceNames = editTask->getSourceFilesName();
473 ui->sourceFilesTable->setRowCount(sourcePaths.length());
474
475 for (int i = 0; i < sourcePaths.length(); i++) {
476 ui->sourceFilesTable->setItem(i, 0, new QTableWidgetItem(sourcePaths[i]));
477 ui->sourceFilesTable->setItem(i, 1, new QTableWidgetItem(sourceNames[i]));
478 }
479
480 QStringList graderPaths = editTask->getGraderFilesPath();
481 QStringList graderNames = editTask->getGraderFilesName();
482 ui->graderFilesTable->setRowCount(graderPaths.length());
483
484 for (int i = 0; i < graderPaths.length(); i++) {
485 ui->graderFilesTable->setItem(i, 0, new QTableWidgetItem(graderPaths[i]));
486 ui->graderFilesTable->setItem(i, 1, new QTableWidgetItem(graderNames[i]));
487 }
488}
489
490void TaskEditWidget::addSourceFiles(const QString &path, const QString &name) {
491 if (! editTask)

Callers

nothing calls this directly

Calls 5

getTaskTypeMethod · 0.80
getSourceFilesPathMethod · 0.80
getSourceFilesNameMethod · 0.80
getGraderFilesPathMethod · 0.80
getGraderFilesNameMethod · 0.80

Tested by

no test coverage detected