对修改后的属性信息以红色高亮展示
This commit is contained in:
parent
027149137e
commit
dbae78cfd9
|
|
@ -147,7 +147,7 @@ void AttributeTableDelegate::paint(QPainter* painter, const QStyleOptionViewItem
|
||||||
if(/*index.column() == 0 || */index.data(Qt::UserRole + AttributeEidt::EditStatus).toBool())
|
if(/*index.column() == 0 || */index.data(Qt::UserRole + AttributeEidt::EditStatus).toBool())
|
||||||
{
|
{
|
||||||
opt.font.setBold(true);
|
opt.font.setBold(true);
|
||||||
//opt.palette.setColor(QPalette::Text, Qt::red);
|
opt.palette.setColor(QPalette::Text, Qt::red);
|
||||||
}
|
}
|
||||||
|
|
||||||
//处理被选择时的背景色,注意:如果qss中有设置,会覆盖此处逻辑
|
//处理被选择时的背景色,注意:如果qss中有设置,会覆盖此处逻辑
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue