projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use static signal offsets instead of offsets calculated on-the-fly
[pulseview.git]
/
pv
/
view
/
signal.h
diff --git
a/pv/view/signal.h
b/pv/view/signal.h
index 6f08e947c61a36958a8efbf5a0a380739576373d..b3212394115df5c5b043d27969cb8dcdfd117d84 100644
(file)
--- a/
pv/view/signal.h
+++ b/
pv/view/signal.h
@@
-65,6
+65,16
@@
public:
*/
void set_colour(QColor colour);
*/
void set_colour(QColor colour);
+ /**
+ * Gets the vertical layout offset of this signal.
+ */
+ int get_v_offset() const;
+
+ /**
+ * Sets the vertical layout offset of this signal.
+ */
+ void set_v_offset(int v_offset);
+
/**
* Paints the signal with a QPainter
* @param p the QPainter to paint into.
/**
* Paints the signal with a QPainter
* @param p the QPainter to paint into.
@@
-118,6
+128,7
@@
protected:
protected:
QString _name;
QColor _colour;
protected:
QString _name;
QColor _colour;
+ int _v_offset;
QSizeF _text_size;
};
QSizeF _text_size;
};