mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Implemented operator<< for FullMsgId to enable qDebug output.
This commit is contained in:
@@ -156,6 +156,18 @@ struct FullMsgId {
|
||||
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);
|
||||
|
||||
struct FullReplyTo {
|
||||
|
||||
Reference in New Issue
Block a user