505 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
505 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
506 // ============================================================================= |
506 // ============================================================================= |
507 void ForgeWindow::slot_makeBorders () { |
507 void ForgeWindow::slot_makeBorders () { |
508 vector<LDObject*> objs = getSelectedObjects (); |
508 vector<LDObject*> objs = getSelectedObjects (); |
509 |
509 |
510 // Delete the objects that were being selected |
|
511 for (LDObject* obj : objs) { |
510 for (LDObject* obj : objs) { |
512 if (obj->getType() != OBJ_Quad && obj->getType() != OBJ_Triangle) |
511 if (obj->getType() != OBJ_Quad && obj->getType() != OBJ_Triangle) |
513 continue; |
512 continue; |
514 |
513 |
515 short dNumLines; |
514 short dNumLines; |
665 { |
664 { |
666 // If the object isn't in the main or edge color, draw this |
665 // If the object isn't in the main or edge color, draw this |
667 // list entry in said color. |
666 // list entry in said color. |
668 color* col = getColor (obj->dColor); |
667 color* col = getColor (obj->dColor); |
669 if (col) |
668 if (col) |
670 item->setForeground (0, QColor (col->zColor.chars())); |
669 item->setForeground (0, col->qColor); |
671 } |
670 } |
672 |
671 |
673 obj->qObjListEntry = item; |
672 obj->qObjListEntry = item; |
674 |
673 |
675 qaItems.append (item); |
674 qaItems.append (item); |