projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeTrace: Replace magic number by proper calculation
[pulseview.git]
/
pv
/
view
/
decodetrace.hpp
diff --git
a/pv/view/decodetrace.hpp
b/pv/view/decodetrace.hpp
index eb011e74367df36951046beb5c582a8dd06ef8c1..2705d3cf4a90c2fd3ca8b522900cb5bbc555ca81 100644
(file)
--- a/
pv/view/decodetrace.hpp
+++ b/
pv/view/decodetrace.hpp
@@
-131,10
+131,10
@@
private:
size_t base_colour, int row_title_width);
void draw_annotation(const pv::data::decode::Annotation &a, QPainter &p,
size_t base_colour, int row_title_width);
void draw_annotation(const pv::data::decode::Annotation &a, QPainter &p,
- int
text_height
, const ViewItemPaintParams &pp, int y,
+ int
h
, const ViewItemPaintParams &pp, int y,
size_t base_colour, int row_title_width) const;
size_t base_colour, int row_title_width) const;
- void draw_annotation_block(std::vector<pv::data::decode::Annotation> a,
+ void draw_annotation_block(std::vector<pv::data::decode::Annotation> a
nnotations
,
QPainter &p, int h, int y, size_t base_colour) const;
void draw_instant(const pv::data::decode::Annotation &a, QPainter &p,
QPainter &p, int h, int y, size_t base_colour) const;
void draw_instant(const pv::data::decode::Annotation &a, QPainter &p,
@@
-210,6
+210,8
@@
private:
std::map<data::decode::Row, int> row_title_widths_;
int row_height_, max_visible_rows_;
std::map<data::decode::Row, int> row_title_widths_;
int row_height_, max_visible_rows_;
+ int min_useful_label_width_;
+
QSignalMapper delete_mapper_, show_hide_mapper_;
};
QSignalMapper delete_mapper_, show_hide_mapper_;
};