X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fevent.cpp;h=01d9642623574bf3e9963e76afac259b102c62e2;hp=3803ab967fa920b3b8311aefe31e940064155fc0;hb=5aefc9ba3d4d0891092bfa342ca1d970bdf7ad4f;hpb=03b1230e44adca6b808a6a702aa5173e578a1160 diff --git a/src/common/event.cpp b/src/common/event.cpp index 3803ab96..01d96426 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -25,3 +25,14 @@ Event::Event(EventManager::EventType type) { } + +QDebug operator<<(QDebug dbg, Event *e) { + dbg.nospace() << qPrintable(e->className()) << "(" + << "type = 0x" << qPrintable(QString::number(e->type(), 16)); + e->debugInfo(dbg); + //<< ", data = " << e->data(); // we don't use data anywhere yet + dbg.nospace() << ", flags = 0x" << qPrintable(QString::number(e->flags(), 16)) + << ")"; + return dbg.space(); +} +