Draw the background on the ratings column properly when using QGtkStyle

This commit is contained in:
David Sansome 2010-10-23 23:27:15 +00:00
parent 3a32c41c7e
commit f18f935b67
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ void PlaylistProxyStyle::drawControl(
}
void PlaylistProxyStyle::drawPrimitive(PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const {
if (element == QStyle::PE_PanelItemViewRow)
if (element == QStyle::PE_PanelItemViewRow ||
element == QStyle::PE_PanelItemViewItem)
cleanlooks_->drawPrimitive(element, option, painter, widget);
else
QProxyStyle::drawPrimitive(element, option, painter, widget);