From 2bfe22d935cb7d7c4f6c75f79ecfb568e75dc5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=BD?= Date: Tue, 8 Oct 2019 17:23:00 +0200 Subject: Force dark grey outline color for individual blocks in CoreView --- qtmips_gui/coreview/value.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_gui/coreview/value.cpp') diff --git a/qtmips_gui/coreview/value.cpp b/qtmips_gui/coreview/value.cpp index 7dd1e6a..c7f87f7 100644 --- a/qtmips_gui/coreview/value.cpp +++ b/qtmips_gui/coreview/value.cpp @@ -34,6 +34,7 @@ ******************************************************************************/ #include "value.h" +#include "coreview_colors.h" #include "../fontsize.h" using namespace coreview; @@ -73,6 +74,8 @@ void Value::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __at painter->setBackgroundMode(Qt::OpaqueMode); if (!frame) painter->setPen(QColor(Qt::white)); + else + painter->setPen(QColor(BLOCK_OUTLINE_COLOR)); painter->drawRect(rect); painter->setPen(QColor(Qt::black)); painter->setBackgroundMode(Qt::TransparentMode); -- cgit v1.2.3