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

Method refreshFileList

src/testcaseeditwidget.cpp:62–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void TestCaseEditWidget::refreshFileList() {
63 if (! editTestCase)
64 return;
65
66 ui->fileList->setRowCount(0);
67 QStringList inputFiles = editTestCase->getInputFiles();
68 QStringList outputFiles = editTestCase->getOutputFiles();
69 ui->fileList->setRowCount(inputFiles.size());
70
71 for (int i = 0; i < ui->fileList->rowCount(); i++) {
72 auto *inputFile = new QTableWidgetItem(inputFiles[i]);
73 auto *outputFile = new QTableWidgetItem(outputFiles[i]);
74 ui->fileList->setItem(i, 0, inputFile);
75 ui->fileList->setItem(i, 1, outputFile);
76 }
77}
78
79void TestCaseEditWidget::setEditTestCase(TestCase *testCase, bool check) {
80 editTestCase = testCase;

Callers

nothing calls this directly

Calls 2

getOutputFilesMethod · 0.80
getInputFilesMethod · 0.45

Tested by

no test coverage detected