Commit bcf11bef authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[FIX] resize bug fixed in OSX. This solves a problem with dock widgets never...

[FIX] resize bug fixed in OSX. This solves a problem with dock widgets never drawn reasonably and the main widget getting into trouble after resizing.
parent e476bda4
......@@ -187,9 +187,11 @@ void WQtGLWidget::paintGL()
m_Viewer->paint();
}
void WQtGLWidget::resizeEvent( QResizeEvent* /* event */ )
void WQtGLWidget::resizeEvent( QResizeEvent* event )
{
// m_Viewer->resize( event->size().width(), event->size().height() );
// we must hand over the event to our base class because that one takes care
// that resizeGL is eventually called
WQtGLWidgetParent::resizeEvent( event );
}
void WQtGLWidget::resizeGL( int width, int height )
......@@ -207,6 +209,8 @@ void WQtGLWidget::paintGL()
void WQtGLWidget::resizeEvent( QResizeEvent* event )
{
m_Viewer->resize( event->size().width(), event->size().height() );
WQtGLWidgetParent::resizeEvent( event );
}
void WQtGLWidget::resizeGL( int /* width */, int /* height */ )
......
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