#include "viewmodel/displayString/SimpleLevelDisplay.h" #include /*************************************************************************************************/ QString SimpleLevelDisplay::provideString(const Log_ptr& log) { static QMap nameMap{ {ELogLevel::info, "Info"}, {ELogLevel::trace, "Trace"}, {ELogLevel::debug, "Debug"}, {ELogLevel::warning, "Warning"}, {ELogLevel::error, "Error"}, {ELogLevel::fatal, "Fatal"}, {ELogLevel::invalid, "Invalid"} }; return nameMap.value(log->level.value_or(ELogLevel::invalid)); }