Commit 722dc38a authored by Laurent Montel's avatar Laurent Montel 😁

Port deprecated method

parent 17f40025
...@@ -139,10 +139,10 @@ void BarGraph::paintEvent( QPaintEvent* ) ...@@ -139,10 +139,10 @@ void BarGraph::paintEvent( QPaintEvent* )
for ( int i = 0; i < barHeight && i < topVal; i += 2 ) { for ( int i = 0; i < barHeight && i < topVal; i += 2 ) {
if ( ( upperLimitActive && samples[ b ] > upperLimit ) || if ( ( upperLimitActive && samples[ b ] > upperLimit ) ||
( lowerLimitActive && samples[ b ] < lowerLimit ) ) ( lowerLimitActive && samples[ b ] < lowerLimit ) )
p.setPen( alarmColor.light( static_cast<int>( 30 + ( 70.0 / p.setPen( alarmColor.lighter( static_cast<int>( 30 + ( 70.0 /
( barHeight + 1 ) * i ) ) ) ); ( barHeight + 1 ) * i ) ) ) );
else else
p.setPen( normalColor.light( static_cast<int>( 30 + ( 70.0 / p.setPen( normalColor.lighter( static_cast<int>( 30 + ( 70.0 /
( barHeight + 1 ) * i ) ) ) ); ( barHeight + 1 ) * i ) ) ) );
p.drawLine( b * barWidth + 3, barHeight - i, ( b + 1 ) * barWidth - 3, p.drawLine( b * barWidth + 3, barHeight - i, ( b + 1 ) * barWidth - 3,
barHeight - i ); barHeight - i );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment