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

Method AddTaskDialog

src/addtaskdialog.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14//
15
16AddTaskDialog::AddTaskDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AddTaskDialog) {
17 ui->setupUi(this);
18 ui->fullScore->setValidator(new QIntValidator(1, Settings::upperBoundForFullScore() * 100, this));
19 ui->timeLimit->setValidator(new QIntValidator(1, Settings::upperBoundForTimeLimit(), this));
20 ui->memoryLimit->setValidator(new QIntValidator(1, Settings::upperBoundForMemoryLimit(), this));
21 connect(ui->taskBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
22 &AddTaskDialog::taskBoxIndexChanged);
23 connect(ui->fullScore, &QLineEdit::textChanged, this, &AddTaskDialog::fullScoreChanged);
24 connect(ui->timeLimit, &QLineEdit::textChanged, this, &AddTaskDialog::timeLimitChanged);
25 connect(ui->memoryLimit, &QLineEdit::textChanged, this, &AddTaskDialog::memoryLimitChanged);
26}
27
28AddTaskDialog::~AddTaskDialog() { delete ui; }
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected