From dbae78cfd96649f0a9747f36c8f79b6e6405e125 Mon Sep 17 00:00:00 2001 From: duanshengchao <519970194@qq.com> Date: Wed, 11 Jun 2025 09:45:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BF=AE=E6=94=B9=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E4=BF=A1=E6=81=AF=E4=BB=A5=E7=BA=A2=E8=89=B2?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/attributeTableDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/attributeTableDelegate.cpp b/source/attributeTableDelegate.cpp index 37aa188..87baf7a 100644 --- a/source/attributeTableDelegate.cpp +++ b/source/attributeTableDelegate.cpp @@ -147,7 +147,7 @@ void AttributeTableDelegate::paint(QPainter* painter, const QStyleOptionViewItem if(/*index.column() == 0 || */index.data(Qt::UserRole + AttributeEidt::EditStatus).toBool()) { opt.font.setBold(true); - //opt.palette.setColor(QPalette::Text, Qt::red); + opt.palette.setColor(QPalette::Text, Qt::red); } //处理被选择时的背景色,注意:如果qss中有设置,会覆盖此处逻辑