Added experimental flat layout, part I
This commit is contained in:
@@ -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ß)
|
||||
|
||||
Reference in New Issue
Block a user