gui: Add RenderTarget struct, an IPC helper class
这个提交包含在:
父节点
b137dec434
当前提交
6a5cb69e27
14
gui/rendertarget.cpp
普通文件
14
gui/rendertarget.cpp
普通文件
@ -0,0 +1,14 @@
|
|||||||
|
#include <QDataStream>
|
||||||
|
|
||||||
|
#include "rendertarget.h"
|
||||||
|
QDataStream &operator<<(QDataStream &out, const RenderTarget &rc)
|
||||||
|
{
|
||||||
|
out << rc.path << rc.page;
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDataStream &operator>>(QDataStream &in, RenderTarget &rc)
|
||||||
|
{
|
||||||
|
in >> rc.path >> rc.page;
|
||||||
|
return in;
|
||||||
|
}
|
15
gui/rendertarget.h
普通文件
15
gui/rendertarget.h
普通文件
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef RENDERTARGET_H
|
||||||
|
#define RENDERTARGET_H
|
||||||
|
#include <QString>
|
||||||
|
struct RenderTarget
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
QString path;
|
||||||
|
int page;
|
||||||
|
friend QDataStream &operator<<(QDataStream &out, const RenderTarget &rc);
|
||||||
|
friend QDataStream &operator>>(QDataStream &in, RenderTarget &rc);
|
||||||
|
};
|
||||||
|
|
||||||
|
QDataStream &operator<<(QDataStream &out, const RenderTarget &rc);
|
||||||
|
QDataStream &operator>>(QDataStream &in, RenderTarget &rc);
|
||||||
|
#endif // RENDERTARGET_H
|
正在加载...
在新工单中引用
屏蔽一个用户