QmlDesigner: Fix shader asset source property setting on navigator drop

The property type of the shader source property is url, so use that
instead of bytearray type.

Fixes: QDS-9721
Change-Id: I244ed455f83e3f70d130a6085b9af083ee60c131
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-06-26 16:53:48 +03:00
parent fcab6a10d2
commit 2810106c2c

View File

@@ -928,7 +928,7 @@ ModelNode NavigatorTreeModel::handleItemLibraryShaderDrop(const QString &shaderP
// set shader properties // set shader properties
PropertyName prop = "shader"; PropertyName prop = "shader";
QString type = "QByteArray"; QString type = "QUrl";
QVariant val = relPath; QVariant val = relPath;
itemLibraryEntry.addProperty(prop, type, val); itemLibraryEntry.addProperty(prop, type, val);
prop = "stage"; prop = "stage";