mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Unbreak SlideSwitchButton.
This commit is contained in:
@@ -180,8 +180,8 @@ SlideSwitchButton::paintEvent( QPaintEvent* event )
|
|||||||
|
|
||||||
QLinearGradient gradient( 0, 0, 0, 1 );
|
QLinearGradient gradient( 0, 0, 0, 1 );
|
||||||
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
|
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
|
||||||
gradient.setColorAt( 0, TomahawkStyle::SLIDESWITCH_UNCHECKED_TOP );
|
gradient.setColorAt( 0, m_baseColorTop );
|
||||||
gradient.setColorAt( 1, TomahawkStyle::SLIDESWITCH_UNCHECKED_BOTTOM );
|
gradient.setColorAt( 1, m_baseColorBottom );
|
||||||
painter.setBrush( gradient );
|
painter.setBrush( gradient );
|
||||||
|
|
||||||
QPainterPath borderPath;
|
QPainterPath borderPath;
|
||||||
|
Reference in New Issue
Block a user