QTfrontend/model/playerslistmodel.cpp
branchios-develop
changeset 13413 ba39a1d396c0
parent 12897 fc47fc4af6bd
--- a/QTfrontend/model/playerslistmodel.cpp	Sun Jun 10 18:56:51 2018 +0200
+++ b/QTfrontend/model/playerslistmodel.cpp	Sun Jun 10 19:12:26 2018 +0200
@@ -309,10 +309,10 @@
     }
 
     if(index.data(Ignore).toBool())
-        setData(index, Qt::gray, Qt::ForegroundRole);
+        setData(index, QColor(Qt::gray), Qt::ForegroundRole);
     else
     if(index.data(Friend).toBool())
-        setData(index, Qt::green, Qt::ForegroundRole);
+        setData(index, QColor(Qt::green), Qt::ForegroundRole);
     else
         setData(index, QBrush(QColor(0xff, 0xcc, 0x00)), Qt::ForegroundRole);
 }