summaryrefslogtreecommitdiffstats
path: root/examples/qtapp/myqt.h
blob: 9e63d4f5677209f0e0365c2419f27a1b2f7f47bd (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
#ifndef GLWIDGET_H
#define GLWIDGET_H

#include <qlabel.h>

#include <csetjmp>

#include "ksquirrel-libs/fmt_types.h"
#include "ksquirrel-libs/fileio.h"
#include "ksquirrel-libs/fmt_codec_base.h"

class MyQT : public QLabel
{
    Q_OBJECT

	public:
		MyQT(QWidget *parent = 0, const char *name = 0);
		~MyQT();
		
		QPixmap loadImage();

	public slots:
		void bind();

	private:
		fmt_codec_base* (*codec_create)();
		void (*codec_destroy)(fmt_codec_base*);
		
		fmt_codec_base	*codeK;
			
};

#endif