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"; |