aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/graphicsview.h
blob: 6b16d40feaf704b9b467366e0e564e933d36b1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H

#include <QGraphicsView>
#include <QGraphicsScene>

class GraphicsView : public QGraphicsView {
public:
    GraphicsView(QWidget *parent);

    void setScene(QGraphicsScene *scene);

protected:
    void resizeEvent(QResizeEvent *event);

private:
    void update_scale();
};

#endif // GRAPHICSVIEW_H