projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CursorPair: Added frequency indication
[pulseview.git]
/
pv
/
view
/
cursorpair.hpp
diff --git
a/pv/view/cursorpair.hpp
b/pv/view/cursorpair.hpp
index 7e089083f0d34ecb426c8b2de3977cc799a01934..aacc7d8c2b3272144be7fd6f9a7930a2d10ca129 100644
(file)
--- a/
pv/view/cursorpair.hpp
+++ b/
pv/view/cursorpair.hpp
@@
-68,7
+68,7
@@
public:
float get_x() const;
float get_x() const;
- QPoint point() const;
+ QPoint point(
const QRect &rect
) const;
pv::widgets::Popup* create_popup(QWidget *parent);
pv::widgets::Popup* create_popup(QWidget *parent);
@@
-90,7
+90,12
@@
public:
**/
void paint_back(QPainter &p, const ViewItemPaintParams &pp);
**/
void paint_back(QPainter &p, const ViewItemPaintParams &pp);
- void compute_text_size(QPainter &p, unsigned int prefix);
+ /**
+ * Constructs the string to display.
+ */
+ QString format_string();
+
+ void compute_text_size(QPainter &p);
std::pair<float, float> get_cursor_offsets() const;
std::pair<float, float> get_cursor_offsets() const;