mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Implemented operator<< for FullMsgId to enable qDebug output.
This commit is contained in:
parent
6237675744
commit
24cf3984c8
1 changed files with 12 additions and 0 deletions
|
@ -156,6 +156,18 @@ struct FullMsgId {
|
||||||
MsgId msg = 0;
|
MsgId msg = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
inline QDebug operator<<(QDebug debug, const FullMsgId &fullMsgId) {
|
||||||
|
debug.nospace()
|
||||||
|
<< "FullMsgId(peer: "
|
||||||
|
<< fullMsgId.peer.value
|
||||||
|
<< ", msg: "
|
||||||
|
<< fullMsgId.msg.bare
|
||||||
|
<< ")";
|
||||||
|
return debug;
|
||||||
|
}
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(FullMsgId);
|
Q_DECLARE_METATYPE(FullMsgId);
|
||||||
|
|
||||||
struct FullReplyTo {
|
struct FullReplyTo {
|
||||||
|
|
Loading…
Add table
Reference in a new issue