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

Method onHSelection

Components/TimeWindow.cpp:1111–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111void
1112TimeWindow::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
1139void
1140TimeWindow::onVSelection(qreal, qreal)

Callers

nothing calls this directly

Calls 2

refreshUiMethod · 0.95
refreshMeasuresMethod · 0.95

Tested by

no test coverage detected