aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-04-17 12:40:45 +0200
committerKarel Kočí <cynerd@email.cz>2018-04-17 12:40:45 +0200
commit6c360d8e42053d9045bbe2fc78c23143f8a334b7 (patch)
treecb4edf0d67f2323b806d912f00f4987f33f554aa /qtmips_gui/coreview.cpp
parent2367fbd88283ddfe1925d2706923e1458e2d2248 (diff)
downloadqtmips-6c360d8e42053d9045bbe2fc78c23143f8a334b7.tar.gz
qtmips-6c360d8e42053d9045bbe2fc78c23143f8a334b7.tar.bz2
qtmips-6c360d8e42053d9045bbe2fc78c23143f8a334b7.zip
Drop unneeded parameter from CoreViewScene constructor
Diffstat (limited to 'qtmips_gui/coreview.cpp')
-rw-r--r--qtmips_gui/coreview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qtmips_gui/coreview.cpp b/qtmips_gui/coreview.cpp
index d32f4aa..918b5bd 100644
--- a/qtmips_gui/coreview.cpp
+++ b/qtmips_gui/coreview.cpp
@@ -20,7 +20,7 @@
connect(machine->core(), SIGNAL(SIG), VAR, SLOT(instruction_update(const machine::Instruction&))); \
} while(false)
-CoreViewScene::CoreViewScene(GraphicsView *view, machine::QtMipsMachine *machine) : QGraphicsScene(view) {
+CoreViewScene::CoreViewScene(machine::QtMipsMachine *machine) : QGraphicsScene() {
setSceneRect(0, 0, SC_WIDTH, SC_HEIGHT);
// Elements //
@@ -127,7 +127,7 @@ coreview::Signal *CoreViewScene::new_signal(const coreview::Connector *a, const
return c;
}
-CoreViewSceneSimple::CoreViewSceneSimple(GraphicsView *view, machine::QtMipsMachine *machine) : CoreViewScene(view, machine) {
+CoreViewSceneSimple::CoreViewSceneSimple(machine::QtMipsMachine *machine) : CoreViewScene(machine) {
NEW_I(instr_prim, 230, 60, instruction_fetched(const machine::Instruction&));
if (machine->config().delay_slot()) {
NEW(Latch, delay_slot_latch, 55, 470, machine, 25);
@@ -193,7 +193,7 @@ CoreViewSceneSimple::CoreViewSceneSimple(GraphicsView *view, machine::QtMipsMach
con->setAxes({CON_AXIS_Y(430), CON_AXIS_X(500), CON_AXIS_Y(210)});
}
-CoreViewScenePipelined::CoreViewScenePipelined(GraphicsView *view, machine::QtMipsMachine *machine) : CoreViewScene(view, machine) {
+CoreViewScenePipelined::CoreViewScenePipelined(machine::QtMipsMachine *machine) : CoreViewScene(machine) {
NEW(Latch, latch_if_id, 158, 70, machine, 400);
latch_if_id->setTitle("IF/ID");
NEW(Latch, latch_id_ex, 392, 70, machine, 400);