summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9drawimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'libk9copy/k9drawimage.h')
-rw-r--r--libk9copy/k9drawimage.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libk9copy/k9drawimage.h b/libk9copy/k9drawimage.h
new file mode 100644
index 0000000..87c8f9b
--- /dev/null
+++ b/libk9copy/k9drawimage.h
@@ -0,0 +1,36 @@
+//
+// C++ Interface: k9drawimage
+//
+// Description:
+//
+//
+// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2007
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef K9DRAWIMAGE_H
+#define K9DRAWIMAGE_H
+
+#include <qwidget.h>
+#include <qpixmap.h>
+
+/**
+ @author Jean-Michel PETIT <k9copy@free.fr>
+*/
+class k9DrawImage : public QWidget
+{
+Q_OBJECT
+public:
+ k9DrawImage(QWidget *parent = 0, const char *name = 0);
+ void setImage(QString _fileName);
+ void setImage(const QImage &_image);
+ ~k9DrawImage();
+private:
+ QPixmap m_pixmap;
+
+protected:
+ void paintEvent ( QPaintEvent *);
+};
+
+#endif