| 1774 | } |
| 1775 | |
| 1776 | bool |
| 1777 | TimeWindow::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 | |
| 1796 | void |
| 1797 | TimeWindow::onFineTuneSelectionClicked(void) |
nothing calls this directly
no outgoing calls
no test coverage detected