src/canvas.cpp

changeset 1168
0b450b4559b8
parent 1145
02264bf0108d
child 1177
8661b9237ed5
equal deleted inserted replaced
1167:a348cee365e3 1168:0b450b4559b8
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)

mercurial