forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user