commit | 505de41dee2d3d5f16406dee78fad121307f3cab | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Thu Mar 24 12:35:08 2022 -0700 |
committer | swissChili <swisschili@fastmail.com> | Thu Mar 24 12:35:08 2022 -0700 |
tree | 16fa6eb3e4c08bdb5c3c942decd6730d19647810 | |
parent | d845a14028c0451bacd747fbc6d5f2f939ebd69d [diff] [blame] |
Add notebook save
diff --git a/ide/Cell.cpp b/ide/Cell.cpp index bf87abb..d00a219 100644 --- a/ide/Cell.cpp +++ b/ide/Cell.cpp
@@ -89,3 +89,15 @@ else return nullptr; } + +QJsonObject Cell::toJson() const +{ + QJsonObject object; + + object["code"] = code(); + object["result"] = result(); + object["status"] = status(); + object["resultType"] = resultType(); + + return object; +}