diff options
Diffstat (limited to 'qtmips_gui/coreview/memory.cpp')
-rw-r--r-- | qtmips_gui/coreview/memory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/memory.cpp b/qtmips_gui/coreview/memory.cpp index 286e6da..b2b1ffe 100644 --- a/qtmips_gui/coreview/memory.cpp +++ b/qtmips_gui/coreview/memory.cpp @@ -34,6 +34,7 @@ ******************************************************************************/ #include "memory.h" +#include "coreview_colors.h" #include "fontsize.h" #include <cmath> @@ -81,6 +82,10 @@ QRectF Memory::boundingRect() const { } void Memory::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); if (cache) painter->drawLine(0, CACHE_HEIGHT, WIDTH, CACHE_HEIGHT); |