summaryrefslogtreecommitdiffstats
path: root/examples/wayland/qwindow-compositor/compositor.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/qwindow-compositor/compositor.h')
-rw-r--r--examples/wayland/qwindow-compositor/compositor.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/wayland/qwindow-compositor/compositor.h b/examples/wayland/qwindow-compositor/compositor.h
index b0fc0c84e..d1b501ff8 100644
--- a/examples/wayland/qwindow-compositor/compositor.h
+++ b/examples/wayland/qwindow-compositor/compositor.h
@@ -96,18 +96,18 @@ protected:
private:
friend class Compositor;
- Compositor *m_compositor;
- GLenum m_textureTarget;
- QOpenGLTexture *m_texture;
+ Compositor *m_compositor = nullptr;
+ GLenum m_textureTarget = GL_TEXTURE_2D;
+ QOpenGLTexture *m_texture = nullptr;
QOpenGLTextureBlitter::Origin m_origin;
QPointF m_position;
QSize m_size;
- QWaylandWlShellSurface *m_wlShellSurface;
- QWaylandXdgSurfaceV5 *m_xdgSurface;
- QWaylandXdgPopupV5 *m_xdgPopup;
- View *m_parentView;
+ QWaylandWlShellSurface *m_wlShellSurface = nullptr;
+ QWaylandXdgSurfaceV5 *m_xdgSurface = nullptr;
+ QWaylandXdgPopupV5 *m_xdgPopup = nullptr;
+ View *m_parentView = nullptr;
QPoint m_offset;
- qreal m_animationFactor;
+ qreal m_animationFactor = 1.0;
QBasicTimer m_animationTimer;
bool m_animationCountUp;