aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/and.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/and.cpp')
-rw-r--r--qtmips_gui/coreview/and.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/and.cpp b/qtmips_gui/coreview/and.cpp
index 94128fb..6ac7a62 100644
--- a/qtmips_gui/coreview/and.cpp
+++ b/qtmips_gui/coreview/and.cpp
@@ -34,6 +34,7 @@
******************************************************************************/
#include "and.h"
+#include "coreview_colors.h"
#include <cmath>
using namespace coreview;
@@ -63,6 +64,10 @@ QRectF And::boundingRect() const {
}
void And::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __attribute__((unused)), QWidget *widget __attribute__((unused))) {
+ QPen pen = painter->pen();
+ pen.setColor(BLOCK_OUTLINE_COLOR);
+ painter->setPen(pen);
+
qreal size = GAP * connectors.size();
painter->drawLine(0, 0, 0, size);
painter->drawLine(0, 0, size/2, 0);