| 572 | } |
| 573 | |
| 574 | int DecodeTrace::rows_size() |
| 575 | { |
| 576 | using pv::data::decode::Decoder; |
| 577 | int size = 0; |
| 578 | |
| 579 | for(auto dec : _decoder_stack->stack()) { |
| 580 | if (dec->shown()) { |
| 581 | auto rows = _decoder_stack->get_rows_gshow(); |
| 582 | |
| 583 | for (auto i = rows.begin(); i != rows.end(); i++) { |
| 584 | pv::data::decode::Row _row = (*i).first; |
| 585 | if (_row.decoder() == dec->decoder() && |
| 586 | _decoder_stack->has_annotations((*i).first) && |
| 587 | (*i).second) |
| 588 | size++; |
| 589 | } |
| 590 | } |
| 591 | else { |
| 592 | size++; |
| 593 | } |
| 594 | } |
| 595 | return size == 0 ? 1 : size; |
| 596 | } |
| 597 | |
| 598 | void DecodeTrace::paint_type_options(QPainter &p, int right, const QPoint pt, QColor fore) |
| 599 | { |
nothing calls this directly
no test coverage detected