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

Method fineTuneSenderIs

Components/TimeWindow.cpp:1776–1794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1774}
1775
1776bool
1777TimeWindow::fineTuneSenderIs(const QPushButton *button) const
1778{
1779 QPushButton *sender = static_cast<QPushButton *>(this->sender());
1780
1781 if (this->ui->lockButton->isChecked()) {
1782#define CHECKPAIR(a, b) \
1783 if (button == this->ui->a || button == this->ui->b) \
1784 return sender == this->ui->a || sender == this->ui->b
1785
1786 CHECKPAIR(selStartIncDeltaTButton, selEndIncDeltaTButton);
1787 CHECKPAIR(selStartIncSampleButton, selEndIncSampleButton);
1788 CHECKPAIR(selStartDecDeltaTButton, selEndDecDeltaTButton);
1789 CHECKPAIR(selStartDecSampleButton, selEndDecSampleButton);
1790#undef CHECKPAIR
1791 }
1792
1793 return button == sender;
1794}
1795
1796void
1797TimeWindow::onFineTuneSelectionClicked(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected