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

Method textChanged

src/editvariabledialog.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30auto EditVariableDialog::getVariableValue() const -> QString { return ui->variableValue->text(); }
31
32void EditVariableDialog::textChanged() {
33 if (! ui->variableName->text().isEmpty() && ! ui->variableValue->text().isEmpty()) {
34 ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
35 } else {
36 ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
37 }
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected