forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TQtCanvasPainter.h
30 lines (25 loc) · 1.12 KB
/
TQtCanvasPainter.h
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 ROOT_TQTCANVASPAINTER
#define ROOT_TQTCANVASPAINTER
/////////////////////////////////////////////////////////////////////////////
// //
// TQtCanvasPainter //
// //
// TQtCanvasPainter is abstarct visitor interface //
// to customize TQtWidget painting //
// It allows the arbitrary low level Qt painting onto the TQtWidget face //
// on the top of TCanvas image //
// //
/////////////////////////////////////////////////////////////////////////////
#include "TQtIncludes.h"
class QPainter;
class QPaintEvent;
class TQtCanvasPainter : public QObject
{
protected:
TQtCanvasPainter(){}
public:
TQtCanvasPainter(QObject *p) : QObject(p) {}
virtual ~TQtCanvasPainter() {}
virtual void paintEvent(QPainter &painter, QPaintEvent *e=0) = 0;
};
#endif