Log Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
537 B

#include "viewmodel/displayString/util/MessageSummaryGenerator.h"
/*************************************************************************************************/
QString MessageSummaryGenerator::generate(const QList<MessagePart>& message)
{
QString msg;
for(const auto& part : message)
{
if(part.string.has_value())
{
msg += part.string.value();
}
if(part.loggedObject.has_value())
{
msg += part.loggedObject->summary;
}
}
return msg;
}