|
|
|
@ -41,6 +41,8 @@ HeaderView::HeaderView(Qt::Orientation orientation, QWidget *parent)
|
|
|
|
|
|
|
|
|
|
void HeaderView::paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const
|
|
|
|
|
{
|
|
|
|
|
painter->setRenderHint(QPainter::Antialiasing, true);
|
|
|
|
|
|
|
|
|
|
if (logicalIndex == Model::Layouts::BACKGROUNDCOLUMN) {
|
|
|
|
|
QString text = model()->headerData(Model::Layouts::BACKGROUNDCOLUMN, Qt::Horizontal, Qt::DisplayRole).toString();
|
|
|
|
|
QIcon icon = model()->headerData(Model::Layouts::BACKGROUNDCOLUMN, Qt::Horizontal, Qt::DecorationRole).value<QIcon>();
|
|
|
|
|