From e7e2a8b894ef2523e7ac0281b6632aafa4ba3f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Jan 2018 23:52:18 +0100 Subject: Add bounding box and make it grey This is just for development purposes. On release this bounding box should be dropped. --- qtmips_gui/coreview.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/qtmips_gui/coreview.cpp b/qtmips_gui/coreview.cpp index 2546c2b..f5d86d9 100644 --- a/qtmips_gui/coreview.cpp +++ b/qtmips_gui/coreview.cpp @@ -32,9 +32,14 @@ void CoreView::update_scale() { CoreViewScene::CoreViewScene(CoreView *view, machine::QtMipsMachine *machine) : QGraphicsScene(view) { this->machine = machine; - // Identification cross - addLine(400, 0, 400, 800); - addLine(0, 400, 800, 400); + + // Identification cross (TODO remove) + QPen pen; + pen.setBrush(QBrush(QColor(220, 220, 220))); + addLine(400, 0, 400, 800, pen); + addLine(0, 400, 800, 400, pen); + addRect(0.5, 0.5, 799.5, 799.5, pen); + // TODO remove pc = new coreview::ProgramCounter(machine); alu = new coreview::Alu(); -- cgit v1.2.3