MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / updateMode

Method updateMode

src/formgen48.cpp:341–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void FormGen48::updateMode()
342{
343 int mode = ui->tabWidget->currentIndex();
344
345 //if (mode == GEN48_AUTO)
346 {
347 updateAutoUi();
348 }
349
350 if (mode == GEN48_AUTO || mode == GEN48_NONE)
351 setAreaEnabled(false);
352 else
353 setAreaEnabled(true);
354
355 if (mode == GEN48_QH)
356 {
357 int qual = ui->comboLow20->currentIndex();
358 ui->labelSalt->setEnabled(qual == IDEAL_SALTED);
359 ui->lineSalt->setEnabled(qual == IDEAL_SALTED);
360 }
361
362 emit changed();
363}
364
365void FormGen48::on_tabWidget_currentChanged(int)
366{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected