ensure that the glwidget is returned

This commit is contained in:
Stefan Tröger
2014-09-10 21:38:37 +02:00
committed by wmayer
parent ec26dd381c
commit 99a61cc03e

View File

@@ -77,7 +77,7 @@ QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget()
QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getGLWidget()
{
return this;
return viewport();
}
QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget() const
@@ -89,7 +89,7 @@ QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget() const
QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getGLWidget() const
{
return const_cast<SoQTQuarterAdaptor*>(this);
return const_cast<QWidget*>(viewport());
}
void SIM::Coin3D::Quarter::SoQTQuarterAdaptor::setCameraType(SoType type)