summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9drawimage.h
blob: ebe0d9f94ddeb851337a6a5fd371b0b2f58f2023 (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
27
28
29
30
31
32
33
34
35
36
37
//
// 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 <tqwidget.h>
#include <tqpixmap.h>

/**
	@author Jean-Michel PETIT <k9copy@free.fr>
*/
class k9DrawImage : public TQWidget
{
Q_OBJECT
  TQ_OBJECT
public:
    k9DrawImage(TQWidget *tqparent = 0, const char *name = 0);
    void setImage(TQString _fileName);
    void setImage(const TQImage &_image);
    ~k9DrawImage();
private:
    TQPixmap m_pixmap;

protected:
    void paintEvent ( TQPaintEvent *);
};

#endif