From d0e96ac431f8ebccc5fd21580414913824d72766 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 17 Jul 2019 22:50:42 +0200 Subject: Prepend message types by MSG_, Windows headerfiles define ERROR as macro. Signed-off-by: Pavel Pisa --- qtmips_gui/messagesmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_gui') diff --git a/qtmips_gui/messagesmodel.cpp b/qtmips_gui/messagesmodel.cpp index 6138e01..f179b2d 100644 --- a/qtmips_gui/messagesmodel.cpp +++ b/qtmips_gui/messagesmodel.cpp @@ -113,9 +113,9 @@ QVariant MessagesModel::data(const QModelIndex &index, int role) const { if (role == Qt::BackgroundRole) { MessagesEntry *ent = messages.at(index.row()); switch (ent->type) { - case messagetype::ERROR: + case messagetype::MSG_ERROR: return QBrush(QColor(255, 230, 230)); - case messagetype::WARNING: + case messagetype::MSG_WARNING: return QBrush(QColor(255, 255, 220)); default: return QVariant(); -- cgit v1.2.3