diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-05 23:52:18 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-05 23:52:18 +0100 |
commit | e7e2a8b894ef2523e7ac0281b6632aafa4ba3f2e (patch) | |
tree | f47546893a9087232680f6652b22d75472e641aa | |
parent | d93089c096311167367366782a47938270836067 (diff) | |
download | qtmips-e7e2a8b894ef2523e7ac0281b6632aafa4ba3f2e.tar.gz qtmips-e7e2a8b894ef2523e7ac0281b6632aafa4ba3f2e.tar.bz2 qtmips-e7e2a8b894ef2523e7ac0281b6632aafa4ba3f2e.zip |
Add bounding box and make it grey
This is just for development purposes. On release this bounding box
should be dropped.
-rw-r--r-- | qtmips_gui/coreview.cpp | 11 |
1 files 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(); |