Commit 5561a954 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug method

parent 5f53d3d0
......@@ -767,3 +767,11 @@ QByteArray Util::htmlCodec(const QByteArray &data, const QByteArray &codec)
//qDebug() << " codec ******************************************: " << codec << " currentCodec : " <<currentCodec;
return currentCodec;
}
QDebug operator <<(QDebug d, const Util::HtmlMessageInfo &t)
{
d << " htmlSource " << t.htmlSource;
d << " extraHead " << t.extraHead;
d << " bodyStyle " << t.bodyStyle;
return d;
}
......@@ -89,5 +89,7 @@ Q_REQUIRED_RESULT MESSAGEVIEWER_EXPORT QByteArray htmlCodec(const QByteArray &da
Q_REQUIRED_RESULT MESSAGEVIEWER_EXPORT QString generateFileNameForExtension(const Akonadi::Item &msgBase, const QString &extension);
}
}
Q_DECLARE_TYPEINFO(MessageViewer::Util::HtmlMessageInfo, Q_MOVABLE_TYPE);
MESSAGEVIEWER_EXPORT QDebug operator <<(QDebug d, const MessageViewer::Util::HtmlMessageInfo &t);
Q_DECLARE_METATYPE(KService::Ptr)
#endif
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