MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / SavePopTextInfo

Function SavePopTextInfo

source/src/type.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2namespace Qi
3{
4 QJsonObject SavePopTextInfo(const QiUi::PopTextInfo& p)
5 {
6 QJsonObject json;
7 json.insert("c", (int)RGB(p.c.red(), p.c.green(), p.c.blue()));
8 json.insert("t", p.t);
9 json.insert("s", p.s);
10 return json;
11 }
12 QiUi::PopTextInfo LoadPopTextInfo(const QJsonObject& json)
13 {
14 QiUi::PopTextInfo info;

Callers 1

toJsonFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected