src/main.cpp

changeset 311
fab454611f9b
parent 309
d862721d19a3
child 325
64ddcd77639f
--- a/src/main.cpp	Fri Jul 01 13:41:46 2022 +0300
+++ b/src/main.cpp	Fri Jul 01 16:45:40 2022 +0300
@@ -570,6 +570,12 @@
 				}
 			});
 			QObject::connect(data->canvas.get(), &PartRenderer::message, &messageLog, &MessageLog::addMessage);
+			QObject::connect(
+				data->tools.get(),
+				&EditTools::suggestCursor,
+				data->canvas.get(),
+				&QWidget::setCursor);
+			data->tools->setEditMode(SelectMode);
 			const QFileInfo fileInfo{*documents.modelPath(modelId)};
 			auto* const subWindow = createSubWindow<ModelSubWindow>(ui.mdiArea, modelId);
 			subWindow->setMinimumSize({96, 96});

mercurial