@@ -60,6 +60,8 @@ using pv::data::SignalData;
6060using pv::data::Segment;
6161using pv::util::format_time;
6262
63+ using std::back_inserter;
64+ using std::copy;
6365using std::deque;
6466using std::dynamic_pointer_cast;
6567using std::list;
@@ -102,6 +104,7 @@ View::View(Session &session, QWidget *parent) :
102104 updating_scroll_ (false ),
103105 tick_period_ (0.0 ),
104106 tick_prefix_ (0 ),
107+ trigger_marker_ (new TriggerMarker(*this )),
105108 show_cursors_ (false ),
106109 cursors_ (new CursorPair(*this )),
107110 next_flag_text_ (' A' ),
@@ -193,7 +196,8 @@ const Viewport* View::viewport() const
193196vector< shared_ptr<TimeItem> > View::time_items () const
194197{
195198 const vector<shared_ptr<Flag>> f (flags ());
196- vector<shared_ptr<TimeItem>> items (f.begin (), f.end ());
199+ vector<shared_ptr<TimeItem>> items = {trigger_marker_};
200+ copy (f.begin (), f.end (), back_inserter (items));
197201 items.push_back (cursors_);
198202 items.push_back (cursors_->first ());
199203 items.push_back (cursors_->second ());
@@ -339,6 +343,11 @@ pair<double, double> View::get_time_extents() const
339343 return make_pair (left_time, right_time);
340344}
341345
346+ shared_ptr<TriggerMarker> View::trigger_marker ()
347+ {
348+ return trigger_marker_;
349+ }
350+
342351bool View::cursors_shown () const
343352{
344353 return show_cursors_;
@@ -627,8 +636,10 @@ void View::row_item_appearance_changed(bool label, bool content)
627636{
628637 if (label)
629638 header_->update ();
630- if (content)
639+ if (content) {
631640 viewport_->update ();
641+ cursorheader_->update ();
642+ }
632643}
633644
634645void View::time_item_appearance_changed (bool label, bool content)
0 commit comments