// Device selector menu
connect(&device_selector_, SIGNAL(device_selected()),
this, SLOT(on_device_selected()));
+ connect(&session, SIGNAL(device_changed()),
+ this, SLOT(on_device_changed()));
// Setup the decoder button
#ifdef ENABLE_DECODE
sample_count_.installEventFilter(this);
sample_rate_.installEventFilter(this);
- QMetaObject::connectSlotsByName(this);
-
// Setup session_ events
connect(&session_, SIGNAL(capture_state_changed(int)), this,
SLOT(capture_state_changed(int)));
}
select_device(device);
+}
+void MainBar::on_device_changed()
+{
+ update_device_list();
update_device_config_widgets();
}
void import_file(std::shared_ptr<sigrok::InputFormat> format);
void on_device_selected();
+ void on_device_changed();
void on_sample_count_changed();
void on_sample_rate_changed();
void on_run_stop();