utils: Adapt to svg cursor format changes
This commit is contained in:
parent
b26eb86310
commit
ca5aa60791
1 changed files with 2 additions and 2 deletions
|
@ -50,13 +50,13 @@ std::optional<SvgCursorMetaDataEntry> SvgCursorMetaDataEntry::parse(const QJsonO
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
const QJsonValue frametime = object.value(QLatin1String("frametime"));
|
||||
const QJsonValue delay = object.value(QLatin1String("delay"));
|
||||
|
||||
return SvgCursorMetaDataEntry{
|
||||
.fileName = fileName.toString(),
|
||||
.nominalSize = nominalSize.toDouble(),
|
||||
.hotspot = QPointF(hotspotX.toDouble(), hotspotY.toDouble()),
|
||||
.delay = std::chrono::milliseconds(frametime.toInt()),
|
||||
.delay = std::chrono::milliseconds(delay.toInt()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue