projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use channel color as the trace background color
[pulseview.git]
/
pv
/
view
/
logicsignal.cpp
diff --git
a/pv/view/logicsignal.cpp
b/pv/view/logicsignal.cpp
index 63d15314cdcf23470261f72a82dafedde51619e3..5d3ac102164375ae9aae4c5b30284ee89853eb8e 100644
(file)
--- a/
pv/view/logicsignal.cpp
+++ b/
pv/view/logicsignal.cpp
@@
-113,7
+113,7
@@
LogicSignal::LogicSignal(
{
shared_ptr<Trigger> trigger;
{
shared_ptr<Trigger> trigger;
-
colour_ = SignalColours[channel->index() % countof(SignalColours)]
;
+
set_colour(SignalColours[channel->index() % countof(SignalColours)])
;
/* Populate this channel's trigger setting with whatever we
* find in the current session trigger, if anything. */
/* Populate this channel's trigger setting with whatever we
* find in the current session trigger, if anything. */
@@
-163,12
+163,6
@@
void LogicSignal::scale_handle_dragged(int offset)
signal_height_ = ((units < 1) ? 1 : units) * font_height;
}
signal_height_ = ((units < 1) ? 1 : units) * font_height;
}
-void LogicSignal::paint_back(QPainter &p, const ViewItemPaintParams &pp)
-{
- if (channel_->enabled())
- paint_axis(p, pp, get_visual_y());
-}
-
void LogicSignal::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
{
QLineF *line;
void LogicSignal::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
{
QLineF *line;