568 if (data != nullptr) { |
568 if (data != nullptr) { |
569 data->gridLayer->settingsChanged(); |
569 data->gridLayer->settingsChanged(); |
570 } |
570 } |
571 }); |
571 }); |
572 QObject::connect(data->canvas.get(), &PartRenderer::message, &messageLog, &MessageLog::addMessage); |
572 QObject::connect(data->canvas.get(), &PartRenderer::message, &messageLog, &MessageLog::addMessage); |
|
573 QObject::connect( |
|
574 data->tools.get(), |
|
575 &EditTools::suggestCursor, |
|
576 data->canvas.get(), |
|
577 &QWidget::setCursor); |
|
578 data->tools->setEditMode(SelectMode); |
573 const QFileInfo fileInfo{*documents.modelPath(modelId)}; |
579 const QFileInfo fileInfo{*documents.modelPath(modelId)}; |
574 auto* const subWindow = createSubWindow<ModelSubWindow>(ui.mdiArea, modelId); |
580 auto* const subWindow = createSubWindow<ModelSubWindow>(ui.mdiArea, modelId); |
575 subWindow->setMinimumSize({96, 96}); |
581 subWindow->setMinimumSize({96, 96}); |
576 subWindow->resize({320, 200}); |
582 subWindow->resize({320, 200}); |
577 subWindow->setWidget(data->canvas.get()); |
583 subWindow->setWidget(data->canvas.get()); |