src/main.cpp

changeset 311
fab454611f9b
parent 309
d862721d19a3
child 325
64ddcd77639f
equal deleted inserted replaced
310:5d6639a9607f 311:fab454611f9b
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());

mercurial