QmlPuppet: Register fonts at scene creation

Automatically register all fonts from 'fonts' folder at scene creation.

Fixes: QDS-3624
Change-Id: I38728e458952ea52c941244daaca715102a93c55
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2021-01-25 17:33:05 +02:00
parent 59d24fa268
commit a57820f055
6 changed files with 27 additions and 0 deletions

View File

@@ -1071,6 +1071,12 @@ CreateSceneCommand NodeInstanceView::createCreateSceneCommand()
importVector,
mockupTypesVector,
model()->fileUrl(),
#ifndef QMLDESIGNER_TEST
QUrl::fromLocalFile(QmlDesigner::DocumentManager::currentResourcePath()
.toFileInfo().absoluteFilePath()),
#else
QUrl::fromLocalFile(QFileInfo(model()->fileUrl().toLocalFile()).absolutePath()),
#endif
m_edit3DToolStates[model()->fileUrl()],
lastUsedLanguage,
stateInstanceId);