diff options
author | Karel Kočí <cynerd@email.cz> | 2017-12-17 13:31:25 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-12-17 13:31:25 +0100 |
commit | e0c757926743ee21f1a60b4b6948ca3eb895c373 (patch) | |
tree | d2acad9475849d5abed15cdd4b6bf3b8d9030f06 /qtmips_gui/coreview | |
parent | 7fa050ddefca5373b09bdbcbb3aa0902eacd5d2f (diff) | |
download | qtmips-e0c757926743ee21f1a60b4b6948ca3eb895c373.tar.gz qtmips-e0c757926743ee21f1a60b4b6948ca3eb895c373.tar.bz2 qtmips-e0c757926743ee21f1a60b4b6948ca3eb895c373.zip |
Put qtmips_machine to machine namespace
Diffstat (limited to 'qtmips_gui/coreview')
-rw-r--r-- | qtmips_gui/coreview/latch.cpp | 2 | ||||
-rw-r--r-- | qtmips_gui/coreview/latch.h | 2 | ||||
-rw-r--r-- | qtmips_gui/coreview/programcounter.cpp | 2 | ||||
-rw-r--r-- | qtmips_gui/coreview/programcounter.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/qtmips_gui/coreview/latch.cpp b/qtmips_gui/coreview/latch.cpp index 77bb317..52f6eb3 100644 --- a/qtmips_gui/coreview/latch.cpp +++ b/qtmips_gui/coreview/latch.cpp @@ -7,7 +7,7 @@ using namespace coreview; #define PENW 1 ////////////////////// -Latch::Latch(QtMipsMachine *machine, qreal height) { +Latch::Latch(machine::QtMipsMachine *machine, qreal height) { this->height = height; connect(machine, SIGNAL(tick()), this, SLOT(tick())); } diff --git a/qtmips_gui/coreview/latch.h b/qtmips_gui/coreview/latch.h index a8738b3..0148b67 100644 --- a/qtmips_gui/coreview/latch.h +++ b/qtmips_gui/coreview/latch.h @@ -13,7 +13,7 @@ namespace coreview { class Latch : public QGraphicsObject { Q_OBJECT public: - Latch(QtMipsMachine *machine, qreal height); + Latch(machine::QtMipsMachine *machine, qreal height); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); diff --git a/qtmips_gui/coreview/programcounter.cpp b/qtmips_gui/coreview/programcounter.cpp index 32c907c..b25cbbe 100644 --- a/qtmips_gui/coreview/programcounter.cpp +++ b/qtmips_gui/coreview/programcounter.cpp @@ -8,7 +8,7 @@ using namespace coreview; #define PENW 1 ////////////////////// -ProgramCounter::ProgramCounter(QtMipsMachine *machine) : QGraphicsObject(nullptr), value(this), name(this) { +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); name.setText(QString("PC")); diff --git a/qtmips_gui/coreview/programcounter.h b/qtmips_gui/coreview/programcounter.h index 98b161d..91d1da3 100644 --- a/qtmips_gui/coreview/programcounter.h +++ b/qtmips_gui/coreview/programcounter.h @@ -12,7 +12,7 @@ namespace coreview { class ProgramCounter : public QGraphicsObject { Q_OBJECT public: - ProgramCounter(QtMipsMachine *machine); + ProgramCounter(machine::QtMipsMachine *machine); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |