forked from qt-creator/qt-creator
QmlDesigner: Update UI when an asset is reimported
Item library thumbnail and navigator icon are refreshed if asset is reimported, and the puppet is restarted in case the asset is in use. Change-Id: Ic5577eff3a24bcce87b504e9c059c29f6cb887a5 Fixes: QDS-1957 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -179,6 +179,17 @@ void Edit3DView::importsChanged(const QList<Import> &addedImports,
|
||||
checkImports();
|
||||
}
|
||||
|
||||
void Edit3DView::customNotification(const AbstractView *view, const QString &identifier,
|
||||
const QList<ModelNode> &nodeList, const QList<QVariant> &data)
|
||||
{
|
||||
Q_UNUSED(view)
|
||||
Q_UNUSED(nodeList)
|
||||
Q_UNUSED(data)
|
||||
|
||||
if (identifier == "asset_import_update")
|
||||
resetPuppet();
|
||||
}
|
||||
|
||||
void Edit3DView::sendInputEvent(QInputEvent *e) const
|
||||
{
|
||||
if (nodeInstanceView())
|
||||
|
||||
Reference in New Issue
Block a user