Skip to content

Commit

Permalink
tlb viewer update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mellotanica committed Dec 1, 2014
1 parent f5bb837 commit ec46c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qarm/qarm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ qarm::qarm(QApplication *app):
connect(toolbar, SIGNAL(showTLB()), tlbWindow, SLOT(show()));
connect(toolbar, SIGNAL(hideTLB()), tlbWindow, SLOT(hide()));
connect(tlbWindow, SIGNAL(hiding()), toolbar, SLOT(uncheckTLB()));
connect(this, SIGNAL(resetMachine()), tlbWindow, SIGNAL(onMachineReset()));

connect(clock, SIGNAL(timeout()), this, SLOT(step()));

connect(this, SIGNAL(resetMachine()), mac, SLOT(reset()));
connect(this, SIGNAL(resetMachine()), this, SIGNAL(resetDisplay()));
connect(mac, SIGNAL(dataReady(Word*,Word*,Word*,Word,Word,Word,QString)), display, SLOT(updateVals(Word*,Word*,Word*,Word,Word,Word,QString)));
connect(this, SIGNAL(resetDisplay()), display, SLOT(reset()));
connect(this, SIGNAL(resetMachine()), tlbWindow, SIGNAL(onMachineReset()));

connect(this, SIGNAL(stopSig()), clock, SLOT(stop()));
connect(this, SIGNAL(stopSig()), toolbar, SLOT(stop()));
Expand Down
1 change: 1 addition & 0 deletions qarm/tlb_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tlb_window::tlb_window(machine *mac, QWidget * parent, Qt::WindowFlags flags):
tlbView = new QTableView;
TLBModel *innermodel = new TLBModel(mac, this);
connect(this, SIGNAL(onMachineReset()), innermodel, SLOT(onMachineReset()));
connect(innermodel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), tlbView, SLOT(dataChanged(QModelIndex,QModelIndex)));
tlbView->setModel(innermodel);
tlbView->setSelectionMode(QAbstractItemView::SingleSelection);
tlbView->setSelectionBehavior(QAbstractItemView::SelectRows);
Expand Down

0 comments on commit ec46c02

Please sign in to comment.