summaryrefslogtreecommitdiffstats
path: root/src/widget/wglwidgetqopengl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/wglwidgetqopengl.cpp')
-rw-r--r--src/widget/wglwidgetqopengl.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widget/wglwidgetqopengl.cpp b/src/widget/wglwidgetqopengl.cpp
index 9e5bd33d72..25a4a6ef2a 100644
--- a/src/widget/wglwidgetqopengl.cpp
+++ b/src/widget/wglwidgetqopengl.cpp
@@ -4,8 +4,11 @@
#include "widget/tooltipqopengl.h"
#include "widget/wglwidget.h"
-WGLWidget::WGLWidget(QWidget* parent)
- : QWidget(parent) {
+WGLWidget::WGLWidget(QWidget* pParent)
+ : QWidget(pParent),
+ m_pOpenGLWindow(nullptr),
+ m_pContainerWidget(nullptr),
+ m_pTrackDropTarget(nullptr) {
// When the widget is resized or moved, the QOpenGLWindow visibly resizes
// or moves before the widgets do. This can be solved by calling
// setAttribute(Qt::WA_PaintOnScreen);
@@ -14,7 +17,7 @@ WGLWidget::WGLWidget(QWidget* parent)
}
WGLWidget::~WGLWidget() {
- ToolTipQOpenGL::singleton().stop(this);
+ ToolTipQOpenGL::singleton().stop();
if (m_pOpenGLWindow) {
m_pOpenGLWindow->widgetDestroyed();
}