blob: 2b0e340b7f7cff824cf182c77966002189a6cc81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef INSTRUCTIONVIEW_H
#define INSTRUCTIONVIEW_H
#include <QGraphicsObject>
#include <QGraphicsSimpleTextItem>
#include "qtmipsmachine.h"
namespace coreview {
class InstructionView : public QGraphicsObject {
Q_OBJECT
public:
InstructionView();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
public slots:
void instruction_update(const machine::Instruction &i);
private:
QGraphicsSimpleTextItem text;
};
}
#endif // INSTRUCTIONVIEW_H
|