shared_ptr<data::SignalBase> base) :
Signal(session, base),
device_(device),
+ trigger_types_(get_trigger_types()),
trigger_none_(nullptr),
trigger_rising_(nullptr),
trigger_high_(nullptr),
// Draw the trigger marker
if (base_->enabled() && trigger_match_) {
const int y = get_visual_y();
- const vector<int32_t> trig_types = get_trigger_types();
- for (int32_t type_id : trig_types) {
+ for (int32_t type_id : trigger_types_) {
const TriggerMatchType *const type =
TriggerMatchType::get(type_id);
if (trigger_match_ != type || type_id < 0 ||
QSpinBox *signal_height_sb_;
const sigrok::TriggerMatchType *trigger_match_;
+ const vector<int32_t> trigger_types_;
QToolBar *trigger_bar_;
QAction *trigger_none_;
QAction *trigger_rising_;