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

Method addTask

src/addtaskdialog.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28AddTaskDialog::~AddTaskDialog() { delete ui; }
29
30void AddTaskDialog::addTask(const QString &title, int _fullScore, int _timeLimit, int _memoryLimit) {
31 fullScore.append(_fullScore);
32 timeLimit.append(_timeLimit);
33 memoryLimit.append(_memoryLimit);
34 ui->taskBox->addItem(title);
35 ui->taskBox->setCurrentIndex(0);
36}
37
38auto AddTaskDialog::getFullScore(int index) const -> int {
39 if (0 <= index && index < fullScore.size()) {

Callers

nothing calls this directly

Calls 1

addItemMethod · 0.80

Tested by

no test coverage detected