Fix for pairfield drawing with new themes (#1246)
* Clean pairField drawing
This commit is contained in:
parent
15fcba2e23
commit
72c1f103e2
2 changed files with 2 additions and 24 deletions
|
@ -98,19 +98,8 @@ void DoubleValuePairField::paintEvent(QPaintEvent *) {
|
|||
int x1 = value2pos(m_maxValue);
|
||||
int y = height() / 2;
|
||||
|
||||
p.setPen(getLightLineColor());
|
||||
p.setPen(QPen(getDarkLineColor(), 4));
|
||||
p.drawLine(x0 - 1, y, x1, y);
|
||||
p.setPen(getLightLineEdgeColor());
|
||||
p.drawPoint(x1 + 1, y);
|
||||
p.drawPoint(x1 + 1, y - 1);
|
||||
p.drawPoint(x1 + 1, y - 2);
|
||||
p.drawPoint(x1 + 1, y - 3);
|
||||
p.setPen(getMiddleLineColor());
|
||||
p.drawLine(x0, y - 2, x1 - 1, y - 2);
|
||||
p.setPen(getDarkLineColor());
|
||||
p.drawLine(x0 - 1, y - 3, x1, y - 3);
|
||||
p.drawPoint(x0 - 1, y - 1);
|
||||
p.drawPoint(x0 - 1, y - 2);
|
||||
|
||||
p.setPen(Qt::black);
|
||||
|
||||
|
|
|
@ -94,19 +94,8 @@ void IntPairField::paintEvent(QPaintEvent *) {
|
|||
int x1 = value2pos(m_maxValue);
|
||||
int y = height() / 2;
|
||||
|
||||
p.setPen(getLightLineColor());
|
||||
p.setPen(QPen(getDarkLineColor(), 4));
|
||||
p.drawLine(x0 - 1, y, x1, y);
|
||||
p.setPen(getLightLineEdgeColor());
|
||||
p.drawPoint(x1 + 1, y);
|
||||
p.drawPoint(x1 + 1, y - 1);
|
||||
p.drawPoint(x1 + 1, y - 2);
|
||||
p.drawPoint(x1 + 1, y - 3);
|
||||
p.setPen(getMiddleLineColor());
|
||||
p.drawLine(x0, y - 2, x1 - 1, y - 2);
|
||||
p.setPen(getDarkLineColor());
|
||||
p.drawLine(x0 - 1, y - 3, x1, y - 3);
|
||||
p.drawPoint(x0 - 1, y - 1);
|
||||
p.drawPoint(x0 - 1, y - 2);
|
||||
|
||||
p.setPen(Qt::black);
|
||||
|
||||
|
|
Loading…
Reference in a new issue