Gui: Correct UTF-8 support for property names

This commit is contained in:
Chris Hennes
2025-12-12 15:40:39 -06:00
committed by Kacper Donat
parent 2efd63614f
commit 10ed34bd4c

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);