edit colors
This commit is contained in:
parent
e0e6b36878
commit
73d4e43f97
1 changed files with 5 additions and 2 deletions
|
@ -262,7 +262,7 @@ void DisplayWidget::drawBackground() {
|
||||||
// triger
|
// triger
|
||||||
const double ofs = (m_TrgSource ? m_offset.b : m_offset.a) - HALF_Y;
|
const double ofs = (m_TrgSource ? m_offset.b : m_offset.a) - HALF_Y;
|
||||||
QPointF trg (m_ts->offset, m_ts->value + ofs);
|
QPointF trg (m_ts->offset, m_ts->value + ofs);
|
||||||
QPen pc (QColor(0,0,255), 1);
|
QPen pc (QColor(0,128,255), 1);
|
||||||
p.setPen(pc);
|
p.setPen(pc);
|
||||||
const QLineF hline (xb, trg.y(), xe, trg.y());
|
const QLineF hline (xb, trg.y(), xe, trg.y());
|
||||||
const QLineF vline (trg.x(), -ye, trg.x(), ye);
|
const QLineF vline (trg.x(), -ye, trg.x(), ye);
|
||||||
|
@ -285,12 +285,15 @@ void DisplayWidget::drawBackground() {
|
||||||
// offsets
|
// offsets
|
||||||
QPen ofpen(pcol.colA);
|
QPen ofpen(pcol.colA);
|
||||||
QVector<qreal>dashes;
|
QVector<qreal>dashes;
|
||||||
dashes << 5 << 5 << 1 << 5;
|
const qreal gap = 10;
|
||||||
|
dashes << gap << gap;
|
||||||
ofpen.setDashPattern(dashes);
|
ofpen.setDashPattern(dashes);
|
||||||
p.setPen (ofpen);
|
p.setPen (ofpen);
|
||||||
const QLineF oa (xb, m_offset.a, xe, m_offset.a);
|
const QLineF oa (xb, m_offset.a, xe, m_offset.a);
|
||||||
p.drawLine (m_forward.map(oa));
|
p.drawLine (m_forward.map(oa));
|
||||||
ofpen.setColor(pcol.colB);
|
ofpen.setColor(pcol.colB);
|
||||||
|
ofpen.setDashPattern(dashes);
|
||||||
|
ofpen.setDashOffset(gap);
|
||||||
p.setPen (ofpen);
|
p.setPen (ofpen);
|
||||||
const QLineF ob (xb, m_offset.b, xe, m_offset.b);
|
const QLineF ob (xb, m_offset.b, xe, m_offset.b);
|
||||||
p.drawLine (m_forward.map(ob));
|
p.drawLine (m_forward.map(ob));
|
||||||
|
|
Loading…
Reference in a new issue