MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / len_changed

Method len_changed

DSView/pv/dialogs/fftoptions.cpp:279–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void FftOptions::len_changed(int index)
280{
281 int pre_index = _interval_combobox->currentIndex();
282 _interval_combobox->clear();
283 const int max_interval = _sample_limit/_len_combobox->itemData(index).toLongLong();
284 for (int i = 1; i <= max_interval; i*=2)
285 {
286 _interval_combobox->addItem(QString::number(i),
287 QVariant::fromValue(i));
288 }
289
290 if (pre_index >= _interval_combobox->count()){
291 pre_index = 0;
292 }
293 _interval_combobox->setCurrentIndex(pre_index);
294}
295
296} // namespace dialogs
297} // namespace pv

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected