mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #54: Linux compilation
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
QJsonObject json;
|
||||
json["isAuto"] = bookmark.isAuto;
|
||||
json["name"] = bookmark.name;
|
||||
json["pageIndex"] = bookmark.pageIndex;
|
||||
json["pageIndex"] = static_cast<qint64>(bookmark.pageIndex);
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
PDFBookmarkManager::Bookmark bookmark;
|
||||
bookmark.isAuto = json["isAuto"].toBool();
|
||||
bookmark.name = json["name"].toString();
|
||||
bookmark.pageIndex = json["pageIndex"].toInt();
|
||||
bookmark.pageIndex = json["pageIndex"].toInteger();
|
||||
return bookmark;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user