Gui: Correct UTF-8 support for property names
This commit is contained in:
committed by
Kacper Donat
parent
2efd63614f
commit
10ed34bd4c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user