diff options
Diffstat (limited to 'krita/ui/kis_opengl_canvas.h')
-rw-r--r-- | krita/ui/kis_opengl_canvas.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/krita/ui/kis_opengl_canvas.h b/krita/ui/kis_opengl_canvas.h index 3e7231d7..79ddff09 100644 --- a/krita/ui/kis_opengl_canvas.h +++ b/krita/ui/kis_opengl_canvas.h @@ -25,21 +25,21 @@ #ifdef HAVE_GL -#include <qwidget.h> -#include <qgl.h> +#include <tqwidget.h> +#include <tqgl.h> #include "kis_global.h" #include "kis_canvas.h" -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include <X11/Xlib.h> -#endif // Q_WS_X11 +#endif // TQ_WS_X11 -#define KisOpenGLCanvasFormat (QGL::DoubleBuffer|QGL::Rgba|QGL::DirectRendering|QGL::NoDepthBuffer) +#define KisOpenGLCanvasFormat (TQGL::DoubleBuffer|TQGL::Rgba|TQGL::DirectRendering|TQGL::NoDepthBuffer) -class KisOpenGLCanvasWidget : public virtual QGLWidget, public virtual KisCanvasWidget { +class KisOpenGLCanvasWidget : public virtual TQGLWidget, public virtual KisCanvasWidget { public: - KisOpenGLCanvasWidget(QWidget *parent, const char *name, QGLWidget *sharedContextWidget); + KisOpenGLCanvasWidget(TQWidget *tqparent, const char *name, TQGLWidget *sharedContextWidget); ~KisOpenGLCanvasWidget(); virtual KisCanvasWidgetPainter *createPainter(); @@ -49,22 +49,22 @@ public: #endif protected: - virtual void paintEvent(QPaintEvent *event); - virtual void mousePressEvent(QMouseEvent *event); - virtual void mouseReleaseEvent(QMouseEvent *event); - virtual void mouseDoubleClickEvent(QMouseEvent *event); - virtual void mouseMoveEvent(QMouseEvent *event); - virtual void tabletEvent(QTabletEvent *event); - virtual void enterEvent(QEvent *event ); - virtual void leaveEvent(QEvent *event); - virtual void wheelEvent(QWheelEvent *event); - virtual void keyPressEvent(QKeyEvent *event); - virtual void keyReleaseEvent(QKeyEvent *event); - virtual void dragEnterEvent(QDragEnterEvent *event); - virtual void dropEvent(QDropEvent *event); -#ifdef Q_WS_X11 + virtual void paintEvent(TQPaintEvent *event); + virtual void mousePressEvent(TQMouseEvent *event); + virtual void mouseReleaseEvent(TQMouseEvent *event); + virtual void mouseDoubleClickEvent(TQMouseEvent *event); + virtual void mouseMoveEvent(TQMouseEvent *event); + virtual void tabletEvent(TQTabletEvent *event); + virtual void enterEvent(TQEvent *event ); + virtual void leaveEvent(TQEvent *event); + virtual void wheelEvent(TQWheelEvent *event); + virtual void keyPressEvent(TQKeyEvent *event); + virtual void keyReleaseEvent(TQKeyEvent *event); + virtual void dragEnterEvent(TQDragEnterEvent *event); + virtual void dropEvent(TQDropEvent *event); +#ifdef TQ_WS_X11 bool x11Event(XEvent *event); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 }; #endif // HAVE_GL |