@@ -45,6 +45,7 @@ cpuloadWidget::cpuloadWidget( QWidget * _parent ) :
|
||||
setFixedSize( m_background.width(), m_background.height() );
|
||||
|
||||
m_temp = QPixmap( width(), height() );
|
||||
|
||||
|
||||
connect( &m_updateTimer, SIGNAL( timeout() ),
|
||||
this, SLOT( updateCpuLoad() ) );
|
||||
@@ -66,7 +67,8 @@ void cpuloadWidget::paintEvent( QPaintEvent * )
|
||||
if( m_changed == true )
|
||||
{
|
||||
m_changed = false;
|
||||
|
||||
|
||||
m_temp.fill( QColor(0,0,0,0) );
|
||||
QPainter p( &m_temp );
|
||||
p.drawPixmap( 0, 0, m_background );
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ void visualizationWidget::paintEvent( QPaintEvent * )
|
||||
// and set color according to that...
|
||||
if( max_level * master_output < 0.9 )
|
||||
{
|
||||
p.setPen( QColor( 128, 224, 128 ) );
|
||||
p.setPen( QColor( 71, 253, 133 ) );
|
||||
}
|
||||
else if( max_level * master_output < 1.0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user