MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / on_selectionChanged

Method on_selectionChanged

MiniZincIDE/extraparamdialog.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void ExtraParamDialog::on_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) {
57 // The selected argument is wrong for some reason, so just check the selected indexes manually
58 bool hasSelection = ui->params_listView->selectionModel()->selectedIndexes().empty();
59 ui->add_pushButton->setDisabled(hasSelection);
60}
61
62void ExtraParamDialog::showEvent(QShowEvent* event) {
63 QWidget::showEvent(event);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected