| 1109 | } |
| 1110 | |
| 1111 | void |
| 1112 | TimeWindow::onHSelection(qreal min, qreal max) |
| 1113 | { |
| 1114 | QObject *obj = sender(); |
| 1115 | |
| 1116 | if (!this->adjusting) { |
| 1117 | Waveform *curr = static_cast<Waveform *>(obj); |
| 1118 | Waveform *wf; |
| 1119 | this->adjusting = true; |
| 1120 | |
| 1121 | if (obj == this->ui->realWaveform) |
| 1122 | wf = this->ui->imagWaveform; |
| 1123 | else |
| 1124 | wf = this->ui->realWaveform; |
| 1125 | |
| 1126 | if (curr->getHorizontalSelectionPresent()) |
| 1127 | wf->selectHorizontal(min, max); |
| 1128 | else |
| 1129 | wf->selectHorizontal(0, 0); |
| 1130 | |
| 1131 | this->refreshUi(); |
| 1132 | this->refreshMeasures(); |
| 1133 | wf->invalidate(); |
| 1134 | |
| 1135 | this->adjusting = false; |
| 1136 | } |
| 1137 | } |
| 1138 | |
| 1139 | void |
| 1140 | TimeWindow::onVSelection(qreal, qreal) |
nothing calls this directly
no test coverage detected