aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/instructionview.cpp
blob: bab9bc8bad4f3b8e9ef6681add8a65a43bdffd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "instructionview.h"
#include <QFont>

using namespace coreview;

InstructionView::InstructionView() : QObject(), QGraphicsSimpleTextItem() {
    QFont f;
    f.setPointSize(8);
    setFont(f);
    instruction_update(machine::Instruction());
}

void InstructionView::instruction_update(const machine::Instruction &i) {
    setText(i.to_str());
}