diff options
Diffstat (limited to 'kdeprint/tests/drawdemo.h')
-rw-r--r-- | kdeprint/tests/drawdemo.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kdeprint/tests/drawdemo.h b/kdeprint/tests/drawdemo.h new file mode 100644 index 000000000..81b201d54 --- /dev/null +++ b/kdeprint/tests/drawdemo.h @@ -0,0 +1,30 @@ +#ifndef DRAWDEMO_H +#define DRAWDEMO_H + +// +// DrawView has installable draw routines, just add a function pointer +// and a text in the table above. +// + +class DrawView : public QWidget +{ + Q_OBJECT +public: + DrawView(); + ~DrawView(); +public slots: + void updateIt( int ); + void printIt(); +protected: + void drawIt( QPainter * ); + void paintEvent( QPaintEvent * ); + void resizeEvent( QResizeEvent * ); +private: + KPrinter *printer; + QButtonGroup *bgroup; + QPushButton *print; + int drawindex; + int maxindex; +}; + +#endif |