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/registers.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qtmips_gui/coreview/registers.cpp') diff --git a/qtmips_gui/coreview/registers.cpp b/qtmips_gui/coreview/registers.cpp index ed3b508..982ba07 100644 --- a/qtmips_gui/coreview/registers.cpp +++ b/qtmips_gui/coreview/registers.cpp @@ -34,6 +34,7 @@ ******************************************************************************/ #include "registers.h" +#include "coreview_colors.h" #include "fontsize.h" #include @@ -81,6 +82,10 @@ QRectF Registers::boundingRect() const { } void Registers::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __attribute((unused)), QWidget *widget __attribute((unused))) { + QPen pen = painter->pen(); + pen.setColor(BLOCK_OUTLINE_COLOR); + painter->setPen(pen); + painter->drawRect(0, 0, WIDTH, HEIGHT); } -- cgit v1.2.3