mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Try to fix OS X painting glitch.
This commit is contained in:
@@ -80,11 +80,13 @@ ProxyStyle::drawControl( ControlElement ce, const QStyleOption* opt, QPainter* p
|
|||||||
p->setPen( QColor( 0x8c, 0x8c, 0x8c ) );
|
p->setPen( QColor( 0x8c, 0x8c, 0x8c ) );
|
||||||
p->drawLine( opt->rect.topLeft(), opt->rect.bottomRight() );
|
p->drawLine( opt->rect.topLeft(), opt->rect.bottomRight() );
|
||||||
}
|
}
|
||||||
|
#ifndef Q_WS_MAC
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
p->setPen( QColor( 0xff, 0xff, 0xff ) );
|
p->setPen( QColor( 0xff, 0xff, 0xff ) );
|
||||||
p->drawLine( opt->rect.topLeft(), opt->rect.bottomRight() );
|
p->drawLine( opt->rect.topLeft(), opt->rect.bottomRight() );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
QProxyStyle::drawControl( ce, opt, p, w );
|
QProxyStyle::drawControl( ce, opt, p, w );
|
||||||
|
Reference in New Issue
Block a user