From 0ec4f3ed2e2584bebb1fb0cc92a039f59fcfa529 Mon Sep 17 00:00:00 2001 From: wumu <mayi@mayi.com> Date: 星期一, 01 九月 2025 23:52:26 +0800 Subject: [PATCH] 250901 --- separateanalysis.cpp | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/separateanalysis.cpp b/separateanalysis.cpp index 24aeda1..50aaf07 100644 --- a/separateanalysis.cpp +++ b/separateanalysis.cpp @@ -142,12 +142,25 @@ if(rank_val != 0){ double rank_rate = 1 - (amount_rank.toDouble()/rank_val); //items.append(new QStandardItem(QString::number(rank_rate))); - rank_val = amount_rank.toInt(); + QStandardItem * amount_rank_item = new QStandardItem(QString::number(rank_rate)); if(rank_rate > 0.9){ amount_rank_item->setData(QColor("red"),Qt::BackgroundColorRole); } + + if(rank_rate > 0.7 && rank_val >= 1000 && amount_rank.toInt() < 1000){ + if(rank_rate > 0.9){ + // 绱壊 + amount_rank_item->setData(QColor(170, 85, 255),Qt::BackgroundColorRole); + }else{ + // 绮夎壊 + amount_rank_item->setData(QColor("pink"),Qt::BackgroundColorRole); + } + + } + items.append(amount_rank_item); + rank_val = amount_rank.toInt(); // 鍒锋柊鎺掑悕 } if(rank_val == 0 && amount_rank.toInt() != 0){ -- Gitblit v1.8.0