325 } break; |
325 } break; |
326 |
326 |
327 case LDObject::Subfile: |
327 case LDObject::Subfile: |
328 { LDSubfile* ref = static_cast<LDSubfile*> (obj); |
328 { LDSubfile* ref = static_cast<LDSubfile*> (obj); |
329 |
329 |
330 descr = fmt ("%1 %2, (", ref->getFileInfo()->getName(), ref->getPosition().stringRep (true)); |
330 descr = fmt ("%1 %2, (", ref->getFileInfo()->getDisplayName(), ref->getPosition().stringRep (true)); |
331 |
331 |
332 for (int i = 0; i < 9; ++i) |
332 for (int i = 0; i < 9; ++i) |
333 descr += fmt ("%1%2", ref->getTransform()[i], (i != 8) ? " " : ""); |
333 descr += fmt ("%1%2", ref->getTransform()[i], (i != 8) ? " " : ""); |
334 |
334 |
335 descr += ')'; |
335 descr += ')'; |
352 } break; |
352 } break; |
353 } |
353 } |
354 |
354 |
355 QListWidgetItem* item = new QListWidgetItem (descr); |
355 QListWidgetItem* item = new QListWidgetItem (descr); |
356 item->setIcon (getIcon (obj->getTypeName())); |
356 item->setIcon (getIcon (obj->getTypeName())); |
357 |
357 |
358 // Use italic font if hidden |
358 // Use italic font if hidden |
359 if (obj->isHidden()) |
359 if (obj->isHidden()) |
360 { QFont font = item->font(); |
360 { QFont font = item->font(); |
361 font.setItalic (true); |
361 font.setItalic (true); |
362 item->setFont (font); |
362 item->setFont (font); |