QTfrontend/model/playerslistmodel.cpp
changeset 7842 d1c0e4341165
parent 7833 20e3bd929f07
child 8891 bf67b4d7d7b4
equal deleted inserted replaced
7841:43e68ac28d79 7842:d1c0e4341165
   228         result.fill(Qt::transparent);
   228         result.fill(Qt::transparent);
   229 
   229 
   230         QPainter painter(&result);
   230         QPainter painter(&result);
   231 
   231 
   232         if(index.data(RoomFilterRole).toBool())
   232         if(index.data(RoomFilterRole).toBool())
       
   233         {
   233             if(index.data(InGame).toBool())
   234             if(index.data(InGame).toBool())
       
   235             {
   234                 painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/ingame.png"));
   236                 painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/ingame.png"));
       
   237             }
   235             else
   238             else
       
   239             {
   236                 if(index.data(Ready).toBool())
   240                 if(index.data(Ready).toBool())
   237                     painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp.png"));
   241                     painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp.png"));
   238                 else
   242                 else
   239                     painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp_off.png"));
   243                     painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp_off.png"));
       
   244             }
       
   245         }
   240 
   246 
   241         QString mainIconName(":/res/chat/");
   247         QString mainIconName(":/res/chat/");
   242 
   248 
   243         if(index.data(RoomAdmin).toBool())
   249         if(index.data(RoomAdmin).toBool())
   244             mainIconName += "roomadmin";
   250             mainIconName += "roomadmin";