QWidget* Binding::get_form(QWidget *parent)
{
- if(_form)
+ if (_form)
return _form;
_form = new QWidget(parent);
QWidget* Enum::get_widget(QWidget *parent)
{
- if(_selector)
+ if (_selector)
return _selector;
_selector = new QComboBox(parent);
- for(vector< pair<const void*, QString> >::const_iterator i =
+ for (vector< pair<const void*, QString> >::const_iterator i =
_values.begin();
i != _values.end(); i++)
_selector->addItem((*i).second,
{
assert(_setter);
- if(!_selector)
+ if (!_selector)
return;
const int index = _selector->currentIndex();
_sample_rate_value.setDecimals(0);
_sample_rate_value.setSuffix("Hz");
- for(size_t i = 0; i < countof(RecordLengths); i++)
+ for (size_t i = 0; i < countof(RecordLengths); i++)
{
const uint64_t &l = RecordLengths[i];
char *const text = sr_si_string_u64(l, " samples");
qVariantFromValue(l));
g_free(text);
- if(l == DefaultRecordLength)
+ if (l == DefaultRecordLength)
_record_length_selector.setCurrentIndex(i);
}
double samplerate = _data->get_samplerate();
// Show sample rate as 1Hz when it is unknown
- if(samplerate == 0.0)
+ if (samplerate == 0.0)
samplerate = 1.0;
const double pixels_offset = offset / scale;
logic.length = Length * sizeof(data[0]);
logic.data = data;
- for(int i = 0; i < Length; i++)
+ for (int i = 0; i < Length; i++)
data[i] = 0x0FF0;
LogicSnapshot s(logic);
logic.length = Length * sizeof(data[0]);
logic.data = data;
- for(int i = 0; i < Length; i++)
+ for (int i = 0; i < Length; i++)
data[i] = 0xFFFE;
LogicSnapshot s(logic);