mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 04:21:51 +02:00
* Unbreak SlideSwitchButton.
This commit is contained in:
parent
f99cfb8e66
commit
6b27e2ad4e
@ -180,8 +180,8 @@ SlideSwitchButton::paintEvent( QPaintEvent* event )
|
||||
|
||||
QLinearGradient gradient( 0, 0, 0, 1 );
|
||||
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
|
||||
gradient.setColorAt( 0, TomahawkStyle::SLIDESWITCH_UNCHECKED_TOP );
|
||||
gradient.setColorAt( 1, TomahawkStyle::SLIDESWITCH_UNCHECKED_BOTTOM );
|
||||
gradient.setColorAt( 0, m_baseColorTop );
|
||||
gradient.setColorAt( 1, m_baseColorBottom );
|
||||
painter.setBrush( gradient );
|
||||
|
||||
QPainterPath borderPath;
|
||||
|
Loading…
x
Reference in New Issue
Block a user