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.cpp
diff --git
a/pv/view/signal.cpp
b/pv/view/signal.cpp
index 3e951b339bc261c319e3807249c2a4d91ae35462..02732ffc7a19112d3e6fc236b7beea57ccf6ed8c 100644
(file)
--- a/
pv/view/signal.cpp
+++ b/
pv/view/signal.cpp
@@
-29,7
+29,8
@@
namespace view {
const int Signal::LabelHitPadding = 2;
Signal::Signal(QString name) :
const int Signal::LabelHitPadding = 2;
Signal::Signal(QString name) :
- _name(name)
+ _name(name),
+ _v_offset(0)
{
}
{
}
@@
-53,6
+54,16
@@
void Signal::set_colour(QColor colour)
_colour = colour;
}
_colour = colour;
}
+int Signal::get_v_offset() const
+{
+ return _v_offset;
+}
+
+void Signal::set_v_offset(int v_offset)
+{
+ _v_offset = v_offset;
+}
+
void Signal::paint_label(QPainter &p, const QRect &rect, bool hover)
{
p.setBrush(_colour);
void Signal::paint_label(QPainter &p, const QRect &rect, bool hover)
{
p.setBrush(_colour);