commit | d2af6ad9cdc1d5cea4bee3c5a531f58cba5d1945 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sat Apr 16 14:42:17 2022 -0700 |
committer | swissChili <swisschili@fastmail.com> | Sat Apr 16 14:42:17 2022 -0700 |
tree | 2f85293b7811309ce191cd9d01f4d941fdfb75c1 | |
parent | 505de41dee2d3d5f16406dee78fad121307f3cab [diff] [blame] |
Add save+open to notebook, allow multiple windows, add translations, add welcome window
diff --git a/ide/Cell.cpp b/ide/Cell.cpp index d00a219..85d20a3 100644 --- a/ide/Cell.cpp +++ b/ide/Cell.cpp
@@ -90,6 +90,14 @@ return nullptr; } +void Cell::fromJson(QJsonObject json) +{ + setCode(json["code"].toString()); + setResult(json["result"].toString()); + setStatus(json["status"].toInt()); + setResultType(json["resultType"].toInt()); +} + QJsonObject Cell::toJson() const { QJsonObject object;