2016-07-01 05:21:58 +03:00
|
|
|
#ifndef OPENGLWINDOW_H
|
|
|
|
#define OPENGLWINDOW_H
|
|
|
|
|
|
|
|
#include <QtGui/QWindow>
|
|
|
|
|
|
|
|
class OpenGLWindow : public QWindow
|
|
|
|
{
|
2018-04-30 21:01:23 +01:00
|
|
|
Q_OBJECT
|
2016-07-01 05:21:58 +03:00
|
|
|
public:
|
2018-04-30 21:01:23 +01:00
|
|
|
explicit OpenGLWindow(QWindow* parent = 0);
|
|
|
|
~OpenGLWindow();
|
2016-07-01 05:21:58 +03:00
|
|
|
|
|
|
|
protected:
|
2018-04-30 21:01:23 +01:00
|
|
|
void exposeEvent(QExposeEvent* ev) Q_DECL_OVERRIDE;
|
|
|
|
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
|
|
|
|
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
|
|
|
|
void focusOutEvent(QFocusEvent*) Q_DECL_OVERRIDE;
|
|
|
|
void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE;
|
|
|
|
void mouseDoubleClickEvent(QMouseEvent*) Q_DECL_OVERRIDE;
|
2016-07-01 05:21:58 +03:00
|
|
|
|
|
|
|
signals:
|
2018-04-30 21:01:23 +01:00
|
|
|
void keyDown(QKeyEvent*);
|
|
|
|
void keyUp(QKeyEvent*);
|
|
|
|
void focusOut(QFocusEvent*);
|
|
|
|
void focusIn(QFocusEvent*);
|
|
|
|
void doubleClick(QMouseEvent*);
|
2016-07-29 18:31:09 +01:00
|
|
|
|
|
|
|
private slots:
|
2018-04-30 21:01:23 +01:00
|
|
|
void activeStateChanged();
|
2016-07-01 05:21:58 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OPENGLWINDOW_H
|