Added experimental flat layout, part I

This commit is contained in:
2025-12-30 00:15:54 +01:00
parent 7fd91d2099
commit 18a922564c
4 changed files with 67 additions and 132 deletions

View File

@@ -210,14 +210,10 @@ void BCAnimatedDelegate::paint(QPainter *painter, const QStyleOptionViewItem& op
*/
int row = index.row();
if (index.column() == 1 )
{
qDebug() << " --- is highlight: " << row << " : " << index.column();
//if( m_rowOpacities.contains(row))
{
qDebug() << " --- PAINT highlight:";
//if ( m_rowOpacities.contains(row))
if( m_rowOpacities.contains(row))
{
paintHighlightRow(painter,option,index);
}
}
@@ -247,7 +243,7 @@ void BCAnimatedDelegate::paintHighlightRow(QPainter* painter, const QStyleOption
QRect itemRect = option.rect.adjusted(3, 3, -3, -3);
// Border von 2px berücksichtigen (nach innen)
QRect contentRect = itemRect.adjusted(2, 2, -2, -2);
//QRect contentRect = itemRect.adjusted(2, 2, -2, -2);
// painter->fillRect(contentRect,Qt::green);
/*
// Hintergrund (weiß)