aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/logicblock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/logicblock.cpp')
-rw-r--r--qtmips_gui/coreview/logicblock.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/logicblock.cpp b/qtmips_gui/coreview/logicblock.cpp
index b1ab37c..dd77ee2 100644
--- a/qtmips_gui/coreview/logicblock.cpp
+++ b/qtmips_gui/coreview/logicblock.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "logicblock.h"
+#include "coreview_colors.h"
#include "fontsize.h"
#include <cmath>
@@ -79,6 +80,10 @@ QRectF LogicBlock::boundingRect() const {
}
void LogicBlock::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->drawRoundedRect(box, RADIUS, RADIUS);
}