blob: f716145f945c7c88798b67b1a8d03f772a505265 (
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
|
#include <QWindow>
#include <QImage>
class Window : public QWindow
{
public:
Window(QWindow *parent = 0);
protected:
void mousePressEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
void keyPressEvent(QKeyEvent *);
void resizeEvent(QResizeEvent *);
private:
void render();
QString m_text;
QImage m_image;
QPoint m_lastPos;
int m_backgroundColorIndex;
QBackingStore *m_backingStore;
};
|