QTfrontend/model/playerslistmodel.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 10753 e56db5d988ef
equal deleted inserted replaced
12896:8869b5256720 12897:fc47fc4af6bd
   307         setData(index, icon, Qt::DecorationRole);
   307         setData(index, icon, Qt::DecorationRole);
   308         m_icons().insert(iconNum, icon);
   308         m_icons().insert(iconNum, icon);
   309     }
   309     }
   310 
   310 
   311     if(index.data(Ignore).toBool())
   311     if(index.data(Ignore).toBool())
   312         setData(index, Qt::gray, Qt::ForegroundRole);
   312         setData(index, QColor(Qt::gray), Qt::ForegroundRole);
   313     else
   313     else
   314     if(index.data(Friend).toBool())
   314     if(index.data(Friend).toBool())
   315         setData(index, Qt::green, Qt::ForegroundRole);
   315         setData(index, QColor(Qt::green), Qt::ForegroundRole);
   316     else
   316     else
   317         setData(index, QBrush(QColor(0xff, 0xcc, 0x00)), Qt::ForegroundRole);
   317         setData(index, QBrush(QColor(0xff, 0xcc, 0x00)), Qt::ForegroundRole);
   318 }
   318 }
   319 
   319 
   320 
   320