blob: 454558c7a9e6e2b6d221822908f63fec379cba4a (
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
28
29
30
|
#ifndef DRAW_H
#define DRAW_H
#include "config.hpp"
#include <qimage.h>
#include <qtimer.h>
#include <qwidget.h>
class DrawWidget : public QWidget {
Q_OBJECT
public:
DrawWidget(const Config &conf);
void paintEvent(QPaintEvent*);
QRgb *m_drawbuffer;
QImage m_img;
unsigned m_width, m_height;
~DrawWidget();
private slots:
void redraw();
private:
unsigned char i;
const Config &m_conf;
};
#endif
|