void DesignDocumentController::copySelected()
{
- QScopedPointer<Model> model(Model::create("import Qt 4.7; Qt/Rectangle"));
+ QScopedPointer<Model> model(Model::create("Qt/Rectangle"));
model->setMetaInfo(m_d->model->metaInfo());
model->setFileUrl(m_d->model->fileUrl());
{
RewriterTransaction transaction(view()->beginRewriterTransaction());
- foreach (const Import &import, modelNode.model()->imports()) {
- //view()->model()->addImport(import); //###
- }
+ foreach (const Import &import, modelNode.model()->imports())
+ view()->model()->addImport(import);
view()->model()->setFileUrl(modelNode.model()->fileUrl());
ModelNode rootNode(view()->rootModelNode());