RenderConfig: Add serialization, basically for IPC

此提交包含在:
2022-05-17 19:20:06 +02:00
父節點 6a5cb69e27
當前提交 830226ae59
共有 2 個檔案被更改,包括 22 行新增0 行删除

17
gui/renderconfig.cpp 一般檔案
查看文件

@@ -0,0 +1,17 @@
#include "renderconfig.h"
QDataStream &operator<<(QDataStream &out, const RenderConfig &rc)
{
out << rc.scaleX;
out << rc.scaleY;
out << rc.wordsToHighlight;
return out;
}
QDataStream &operator>>(QDataStream &in, RenderConfig &rc)
{
in >> rc.scaleX;
in >> rc.scaleY;
in >> rc.wordsToHighlight;
return in;
}