MCPcopy Create free account
hub / github.com/IgKh/katvan / updateButtonState

Method updateButtonState

shell/katvan_exportdialog.cpp:395–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void ExportDialog::updateButtonState()
396{
397 QPushButton* exportButton = d_buttonBox->button(QDialogButtonBox::Save);
398 QString format = d_formatCombo->currentData().toString();
399
400 if (format == MULTI_PNG_FORMAT) {
401 exportButton->setEnabled(!d_selectedTargetDir.isEmpty() && !d_targetNamePattern->text().isEmpty());
402 }
403 else {
404 exportButton->setEnabled(!d_selectedTargetFile.isEmpty());
405 }
406}
407
408void ExportDialog::doExport()
409{

Callers

nothing calls this directly

Calls 1

textMethod · 0.80

Tested by

no test coverage detected