133 QString primitiveName = item->primitive()->name; |
133 QString primitiveName = item->primitive()->name; |
134 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint()); |
134 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint()); |
135 reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); |
135 reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); |
136 currentDocument()->addToSelection(reference); |
136 currentDocument()->addToSelection(reference); |
137 m_window->buildObjectList(); |
137 m_window->buildObjectList(); |
138 refresh(); |
138 update(); |
139 event->acceptProposedAction(); |
139 event->acceptProposedAction(); |
140 } |
140 } |
141 } |
141 } |
142 |
142 |
143 void Canvas::keyReleaseEvent(QKeyEvent* event) |
143 void Canvas::keyReleaseEvent(QKeyEvent* event) |