X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=blobdiff_plain;f=src%2Fplugins%2FLogView%2Flogview.cpp;fp=src%2Fplugins%2FLogView%2Flogview.cpp;h=1bd41a170a5573cfa799ae89c59417b8000ba709;hp=75e973eec3e993d759fab4c9376c3fbb7247498d;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hpb=13dedf19c628b9967e4c4106ab0fd967f1df0b90 diff --git a/src/plugins/LogView/logview.cpp b/src/plugins/LogView/logview.cpp index 75e973e..1bd41a1 100644 --- a/src/plugins/LogView/logview.cpp +++ b/src/plugins/LogView/logview.cpp @@ -3,7 +3,7 @@ * @brief Implementation of the LogView module * @author Enar Vaikene * - * Copyright (c) 2011 Enar Vaikene + * Copyright (c) 2011-2019 Enar Vaikene * * This file is part of the eVaf C++ cross-platform application development framework. * @@ -62,7 +62,6 @@ QVariant Model::data(QModelIndex const & index, int role) const // Return the message for the display role case Qt::DisplayRole: { return mData.at(index.row()).simplified; - break; } // Change color for different message types @@ -71,18 +70,14 @@ QVariant Model::data(QModelIndex const & index, int role) const switch (s) { case Common::iLogger::Info: return QBrush(QColor(Qt::blue)); - break; case Common::iLogger::Warning: return QBrush(QColor(Qt::black)); - break; case Common::iLogger::Error: case Common::iLogger::Fatal: return QBrush(QColor(Qt::red)); - break; default: return QVariant(); } - break; } } // switch (role) @@ -158,7 +153,7 @@ bool Model::saveToFile(QString const & fileName) return true; } -char const * const Model::severityText(Common::iLogger::Severity s) const +char const * Model::severityText(Common::iLogger::Severity s) const { if (s >= Common::iLogger::None && s < Common::iLogger::Count) return SeverityText[s];