Fix compilation with QT 5.13

This commit is contained in:
Subs
2019-07-03 00:05:38 +02:00
parent e3880b79f2
commit 99f23f8929
6 changed files with 11 additions and 11 deletions

View File

@ -102,8 +102,8 @@ void JoySlider::drawBox( int x, int width ) {
//widget but is defined by x-coordinate and width
QPainter paint( this );
paint.setPen( (isEnabled())?Qt::white:palette().background().color() );
paint.setBrush( (isEnabled())?Qt::white:palette().background() );
paint.setPen( (isEnabled())?Qt::white:palette().window().color() );
paint.setBrush( (isEnabled())?Qt::white:palette().window() );
paint.drawRect( x, 1, width, boxheight);
paint.setPen( palette().dark().color() );