src/gui.cpp

changeset 530
f9476dbd87ec
parent 528
e38d199ef9aa
child 538
2f85d4d286e5
child 665
4355e72ffd47
equal deleted inserted replaced
529:c294b2070185 530:f9476dbd87ec
343 default: 343 default:
344 { descr = obj->typeName(); 344 { descr = obj->typeName();
345 } break; 345 } break;
346 } 346 }
347 347
348 // Put it into brackets if it's hidden
349 if (obj->hidden())
350 descr = fmt ("[[ %1 ]]", descr);
351
352 QListWidgetItem* item = new QListWidgetItem (descr); 348 QListWidgetItem* item = new QListWidgetItem (descr);
353 item->setIcon (getIcon (obj->typeName())); 349 item->setIcon (getIcon (obj->typeName()));
350
351 // Use italic font if hidden
352 if (obj->hidden())
353 { QFont font = item->font();
354 font.setItalic (true);
355 item->setFont (font);
356 }
354 357
355 // Color gibberish orange on red so it stands out. 358 // Color gibberish orange on red so it stands out.
356 if (obj->getType() == LDObject::Error) 359 if (obj->getType() == LDObject::Error)
357 { item->setBackground (QColor ("#AA0000")); 360 { item->setBackground (QColor ("#AA0000"));
358 item->setForeground (QColor ("#FFAA00")); 361 item->setForeground (QColor ("#FFAA00"));

mercurial