Commit a8c00772 authored by David Jarvie's avatar David Jarvie

Improve debug output for EventId

parent e84e85b4
......@@ -50,7 +50,11 @@ struct EventId : public QPair<Akonadi::Collection::Id, QString>
QString eventId() const { return second; }
};
inline QDebug operator<<(QDebug s, const EventId& id) { return s << id.eventId(); }
inline QDebug operator<<(QDebug s, const EventId& id)
{
s.nospace() << "\"" << id.collectionId() << "::" << id.eventId().toLatin1().constData() << "\"";
return s.space();
}
#endif // EVENTID_H
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment