const qreal PrettyItemDelegate::PADDING = 10.0;
PrettyItemDelegate::PrettyItemDelegate( QObject* parent ) : QStyledItemDelegate( parent ) {
+
+ boldFont.setBold(true);
+ smallerFont.setPointSize(smallerFont.pointSize()*.85);
+ smallerBoldFont.setBold(true);
+ smallerBoldFont.setPointSize(smallerBoldFont.pointSize()*.85);
+
createPlayIcon();
}
QPalette palette;
- QFont boldFont;
- boldFont.setBold(true);
- QFont smallerFont;
- smallerFont.setPointSize(smallerFont.pointSize()*.85);
- QFont smallerBoldFont;
- smallerBoldFont.setBold(true);
- smallerBoldFont.setPointSize(smallerBoldFont.pointSize()*.85);
-
const bool isActive = index.data( ActiveTrackRole ).toBool();
const bool isSelected = option.state & QStyle::State_Selected;