#include <pv/devicemanager.h>
#include <pv/popups/deviceoptions.h>
-using namespace std;
+using std::string;
namespace pv {
namespace toolbars {
{
const uint64_t &l = RecordLengths[i];
char *const text = sr_si_string_u64(l, " samples");
- _record_length_selector.addItem(QString(text),
+ _record_length_selector.addItem(QString::fromUtf8(text),
qVariantFromValue(l));
g_free(text);
for (unsigned int i = 0; i < num_elements; i++)
{
char *const s = sr_samplerate_string(elements[i]);
- _sample_rate_list.addItem(QString(s),
+ _sample_rate_list.addItem(QString::fromUtf8(s),
qVariantFromValue(elements[i]));
g_free(s);
}
void SamplingBar::on_device_selected()
{
- using namespace pv::popups;
+ using pv::popups::DeviceOptions;
if (_updating_device_selector)
return;