PageRenderTime 36ms CodeModel.GetById 31ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/backend/qt/ftk_qt_widget.h

http://ftk.googlecode.com/
C++ Header | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | 08c2c5a52b6aef09a4193ff5d09c799e MD5 | raw file
 1
 2#ifndef FTK_QT_WIDGET_H
 3#define FTK_QT_WIDGET_H
 4
 5#include "ftk_event.h"
 6#include <QtGui/QWidget>
 7
 8class QtWidget : public QWidget
 9{
10	Q_OBJECT
11public:
12	QtWidget(QWidget* parent = 0);
13	~QtWidget();
14protected:
15	virtual void paintEvent(QPaintEvent* event);
16	virtual void keyPressEvent(QKeyEvent* event);
17	virtual void keyReleaseEvent(QKeyEvent* event);
18	virtual void mouseDoubleClickEvent(QMouseEvent* event);
19	virtual void mouseMoveEvent(QMouseEvent* event);
20	virtual void mousePressEvent(QMouseEvent* event);
21	virtual void mouseReleaseEvent(QMouseEvent* event);
22	virtual void inputMethodEvent(QInputMethodEvent* event);
23	virtual void closeEvent(QCloseEvent* event);
24private:
25	FtkEvent ev;
26};
27
28#endif/*FTK_QT_WIDGET_H*/