Commit 118b08de authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot

Merge topic 'SmallQVTKOpenGLWidgetFixForProperty'

8c65f673 Move a property set later in QVTKOpenGLWidget
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Michael Migliore's avatarMichael Migliore <michael.migliore@kitware.com>
Acked-by: Joachim Pouderoux's avatarJoachim Pouderoux <joachim.pouderoux@kitware.com>
Merge-request: !4720
parents 4d1d2fa4 8c65f673
......@@ -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