aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-17 22:50:42 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-17 22:50:42 +0200
commitd0e96ac431f8ebccc5fd21580414913824d72766 (patch)
treec186e5307e36f4be47df18de516d95ea97556e78 /qtmips_gui
parent94095c7890f491d7023b1a69b3f088be8c05e898 (diff)
downloadqtmips-d0e96ac431f8ebccc5fd21580414913824d72766.tar.gz
qtmips-d0e96ac431f8ebccc5fd21580414913824d72766.tar.bz2
qtmips-d0e96ac431f8ebccc5fd21580414913824d72766.zip
Prepend message types by MSG_, Windows headerfiles define ERROR as macro.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/messagesmodel.cpp4
1 files changed, 2 insertions, 2 deletions
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();