| 98 | } |
| 99 | |
| 100 | pv::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 | |
| 115 | void Header::paintEvent(QPaintEvent*) |
| 116 | { |
nothing calls this directly
no test coverage detected