MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_mTrace

Method get_mTrace

DSView/pv/view/header.cpp:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100pv::view::Trace* Header::get_mTrace(int &action, const QPoint &pt)
101{
102 const int w = width();
103 std::vector<Trace*> traces;
104 _view.get_traces(ALL_VIEW, traces);
105
106 for(auto t : traces)
107 {
108 if ((action = t->pt_in_rect(t->get_y(), w, pt)))
109 return t;
110 }
111
112 return NULL;
113}
114
115void Header::paintEvent(QPaintEvent*)
116{

Callers

nothing calls this directly

Calls 3

get_tracesMethod · 0.80
pt_in_rectMethod · 0.80
get_yMethod · 0.80

Tested by

no test coverage detected