Commit 38e8f929 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - I couldn't do more ugly... If you know how to... please try :D

parent 96b6f40c
......@@ -90,9 +90,11 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
// QBixmap mask = QBitmap( QPixmap );
QPainter p( &pixGradient );
QLinearGradient gradient( 0, 0, WLENGTH, WHEIGHT );
QLinearGradient gradient( 0, 0, WLENGTH, 0 );
gradient.setColorAt( 0.0, Qt::white );
gradient.setColorAt( 1.0, Qt::blue );
gradient.setColorAt( 0.2, QColor( 20, 226, 20 ) );
gradient.setColorAt( 0.5, QColor( 255, 176, 15 ) );
gradient.setColorAt( 1.0, QColor( 235, 30, 20 ) );
p.setPen( Qt::NoPen );
p.setBrush( gradient );
......
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