MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onChangePaletteContrast

Method onChangePaletteContrast

Components/TimeWindow.cpp:1478–1489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1476}
1477
1478void
1479TimeWindow::onChangePaletteContrast(int contrast)
1480{
1481 qreal realContrast = std::pow(
1482 static_cast<qreal>(10),
1483 static_cast<qreal>(contrast / 20.));
1484
1485 this->ui->realWaveform->setPhaseDiffContrast(realContrast);
1486 this->ui->imagWaveform->setPhaseDiffContrast(realContrast);
1487
1488 emit configChanged();
1489}
1490
1491void
1492TimeWindow::onTaskCancelling(void)

Callers 1

setPaletteContrastMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected