mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 20:06:41 +00:00
fixed an encoding problem. I hate you QString. I hate you so much
This commit is contained in:
parent
cafbabde45
commit
9464f45d57
1 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ namespace CSMWorld
|
||||||
|
|
||||||
virtual QVariant get (const Record<ESXRecordT>& record) const
|
virtual QVariant get (const Record<ESXRecordT>& record) const
|
||||||
{
|
{
|
||||||
return record.get().mId.c_str();
|
return QString::fromUtf8 (record.get().mId.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool isEditable() const
|
virtual bool isEditable() const
|
||||||
|
@ -127,17 +127,17 @@ namespace CSMWorld
|
||||||
{
|
{
|
||||||
case ESM::VT_String:
|
case ESM::VT_String:
|
||||||
|
|
||||||
return record.get().mValue.getString().c_str(); break;
|
return QString::fromUtf8 (record.get().mValue.getString().c_str());
|
||||||
|
|
||||||
case ESM::VT_Int:
|
case ESM::VT_Int:
|
||||||
case ESM::VT_Short:
|
case ESM::VT_Short:
|
||||||
case ESM::VT_Long:
|
case ESM::VT_Long:
|
||||||
|
|
||||||
return record.get().mValue.getInteger(); break;
|
return record.get().mValue.getInteger();
|
||||||
|
|
||||||
case ESM::VT_Float:
|
case ESM::VT_Float:
|
||||||
|
|
||||||
return record.get().mValue.getFloat(); break;
|
return record.get().mValue.getFloat();
|
||||||
|
|
||||||
default: return QVariant();
|
default: return QVariant();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue