Commit 8c65f673 authored by Mathieu Westphal's avatar Mathieu Westphal

Move a property set later in QVTKOpenGLWidget

When setting a property, an event is generated, this make sure the widget
is ready to handle this kind of events
parent ebf63a8d
......@@ -50,11 +50,6 @@ QVTKOpenGLWidget::QVTKOpenGLWidget(vtkGenericOpenGLRenderWindow* w,
QOpenGLContext *shareContext, QWidget* parent, Qt::WindowFlags f)
: QWidget(parent, f)
{
// Work around for bug paraview/paraview#18285
// https://gitlab.kitware.com/paraview/paraview/issues/18285
// This ensure that kde will not grab the window
this->setProperty("_kde_no_window_grab", true);
// Internal QVTKOpenGLWindow creation
this->qVTKOpenGLWindowInternal = new QVTKOpenGLWindow(w, shareContext);
QVBoxLayout* vBoxLayout = new QVBoxLayout(this);
......@@ -84,6 +79,11 @@ QVTKOpenGLWidget::QVTKOpenGLWidget(vtkGenericOpenGLRenderWindow* w,
// forward the original QWidget size to the internal window
this->resize(Superclass::size());
// Work around for bug paraview/paraview#18285
// https://gitlab.kitware.com/paraview/paraview/issues/18285
// This ensure that kde will not grab the window
this->setProperty("_kde_no_window_grab", true);
// enable qt gesture events
grabGesture(Qt::PinchGesture);
grabGesture(Qt::PanGesture);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment