/*************************************************************************** QImageWidget.h - description ------------------- begin : Fri Nov 17 2000 copyright : (C) 2000 by Rainer Lehrig email : lehrig@t-online.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _QIMAGE_WIDGET_H_ #define _QIMAGE_WIDGET_H_ #include #include class QImageWidget : public QWidget { Q_OBJECT public: QImageWidget(QWidget *parent=0); ~QImageWidget(); virtual void setGeometry(int nx, int ny, int nw, int nh); void setImage(const QImage& newimage); protected: virtual void paintEvent( QPaintEvent * ); private: int conversion_flags; int x,y,w,h; QImage image; // the loaded image }; #endif