make library view sort line themable

set line color alpha to 100
This commit is contained in:
Arun Narayanankutty 2015-09-21 15:15:44 -05:00 committed by narunlifescience
parent c6e56813ef
commit ec60406f14
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ void LibraryItemDelegate::paint(QPainter* painter,
painter->drawText(text_rect, text);
// Draw the line under the item
QPen line_pen(opt.palette.color(QPalette::Dark));
QColor line_color = opt.palette.color(QPalette::Text);
line_color.setAlpha(100);
QPen line_pen(line_color);
line_pen.setWidth(2);
painter->setPen(line_pen);