Issue #54: Linux compilation

This commit is contained in:
Jakub Melka 2023-12-17 18:38:45 +01:00
parent e87b14dc3a
commit 1ed7a12357
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public:
QJsonObject json; QJsonObject json;
json["isAuto"] = bookmark.isAuto; json["isAuto"] = bookmark.isAuto;
json["name"] = bookmark.name; json["name"] = bookmark.name;
json["pageIndex"] = bookmark.pageIndex; json["pageIndex"] = static_cast<qint64>(bookmark.pageIndex);
return json; return json;
} }
@ -44,7 +44,7 @@ public:
PDFBookmarkManager::Bookmark bookmark; PDFBookmarkManager::Bookmark bookmark;
bookmark.isAuto = json["isAuto"].toBool(); bookmark.isAuto = json["isAuto"].toBool();
bookmark.name = json["name"].toString(); bookmark.name = json["name"].toString();
bookmark.pageIndex = json["pageIndex"].toInt(); bookmark.pageIndex = json["pageIndex"].toInteger();
return bookmark; return bookmark;
} }