diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-05 23:45:57 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-05 23:45:57 +0100 |
commit | d93089c096311167367366782a47938270836067 (patch) | |
tree | 8f3d424442dbdd9c3a73787592a08629eae054be /qtmips_gui | |
parent | ca97f1bd709a154f73c9e28f8a50c5b409baab3e (diff) | |
download | qtmips-d93089c096311167367366782a47938270836067.tar.gz qtmips-d93089c096311167367366782a47938270836067.tar.bz2 qtmips-d93089c096311167367366782a47938270836067.zip |
Resize program counter coreview object
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/coreview/programcounter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_gui/coreview/programcounter.cpp b/qtmips_gui/coreview/programcounter.cpp index a6565c7..1f4e623 100644 --- a/qtmips_gui/coreview/programcounter.cpp +++ b/qtmips_gui/coreview/programcounter.cpp @@ -4,13 +4,13 @@ using namespace coreview; ////////////////////// #define WIDTH 80 -#define HEIGHT 100 +#define HEIGHT 50 #define PENW 1 ////////////////////// ProgramCounter::ProgramCounter(machine::QtMipsMachine *machine) : QGraphicsObject(nullptr), value(this), name(this) { value.setText(QString("0x") + QString::number(machine->registers()->read_pc(), 16)); - value.setPos(0, HEIGHT/2 - value.boundingRect().height()/2); + value.setPos(1, HEIGHT/2 - value.boundingRect().height()/2); name.setText(QString("PC")); name.setPos(WIDTH/2 - name.boundingRect().width()/2, 0); |