- struct sr_rational *timebases;
- if (sr_config_list(_sdi->driver, SR_CONF_TIMEBASE,
- (const void **)&timebases, _sdi) != SR_OK)
- return;
-
- vector< pair<const void*, QString> > values;
- for (int i = 0; timebases[i].p && timebases[i].q; i++)
- values.push_back(make_pair(timebases + i,
- QString(sr_period_string(
- timebases[i].p * timebases[i].q))));
-
- expose_enum(info, values, SR_CONF_TIMEBASE);
+ uint64_t p, q;
+ g_variant_get(gvar, "(tt)", &p, &q);
+ return QString::fromUtf8(sr_period_string(p * q));