34 bool window_save =
false;
35 QString window_state_data;
44 if (
const auto v = j[
"window_save"]; v.isBool()) window_save = v.toBool();
45 if (
const auto v = j[
"window_state_data"]; v.isString()) {
46 window_state_data = v.toString();
48 if (
const auto v = j[
"x"]; v.isDouble()) x = v.toInt();
49 if (
const auto v = j[
"y"]; v.isDouble()) y = v.toInt();
50 if (
const auto v = j[
"width"]; v.isDouble()) width = v.toInt();
51 if (
const auto v = j[
"height"]; v.isDouble()) height = v.toInt();
54 [[nodiscard]]
auto Json()
const -> QJsonObject {
56 j[
"window_save"] = window_save;
57 j[
"window_state_data"] = window_state_data;
Definition: FileReadTask.cpp:31
Definition: WindowStateSO.h:33