Gui: Correct UTF-8 support for property names

This commit is contained in:
Chris Hennes
2025-12-15 18:26:51 +01:00
committed by Kacper Donat
parent 2efd63614f
commit 10ed34bd4c
+1 -1
View File
@@ -240,7 +240,7 @@ QModelIndex PropertyModel::propertyIndexFromPath(const QStringList& path) const
static void setPropertyItemName(PropertyItem* item, const char* propName, QString groupName)
{
QString name = QString::fromLatin1(propName);
QString name = QString::fromUtf8(propName);
QString realName = name;
if (name.size() > groupName.size() + 1 && name.startsWith(groupName + QLatin1Char('_'))) {
name = name.right(name.size() - groupName.size() - 1);