Logo Search packages:      
Sourcecode: ecamegapedal version File versions  Download package

void QEVUMeter::prepareBufferDev ( void   )  [private]

Prepares the Buffer Device from which a bitBlt operation is done to reflect the current level.

Definition at line 224 of file qevumeter.cpp.

{
      
  QPainter qp;

  BufferDev->fill(Qt::black);
  qp.begin(BufferDev);
  qp.fillRect( 0 ,0, BufferDev->width()*6/10 ,QE_METER_HEIGHT, Qt::green);                
  qp.fillRect( BufferDev->width()*6/10, 0, BufferDev->width()*9/10, QE_METER_HEIGHT, Qt::yellow);
  qp.fillRect( BufferDev->width()*9/10, 0, BufferDev->width(), QE_METER_HEIGHT, Qt::red);
  qp.end();
}


Generated by  Doxygen 1.6.0   Back to index