- _sample_rate_value.setDecimals(0);
- _sample_rate_value.setSuffix("Hz");
-
- for (size_t i = 0; i < countof(RecordLengths); i++)
- {
- const uint64_t &l = RecordLengths[i];
- char *const text = sr_si_string_u64(l, " samples");
- _record_length_selector.addItem(QString::fromUtf8(text),
- qVariantFromValue(l));
- g_free(text);
-
- if (l == DefaultRecordLength)
- _record_length_selector.setCurrentIndex(i);
- }