Commit c0ac4f1e authored by Ben Boeckel's avatar Ben Boeckel
Browse files

QVTKWidget2: use Superclass typedef internally

parent ee830988
......@@ -36,7 +36,7 @@
#endif
QVTKWidget2::QVTKWidget2(QWidget* p, const QGLWidget* shareWidget, Qt::WindowFlags f)
: QGLWidget(p, shareWidget, f), mRenWin(NULL)
: Superclass(p, shareWidget, f), mRenWin(NULL)
{
this->UseTDx=false;
mIrenAdapter = new QVTKInteractorAdapter(this);
......@@ -46,7 +46,7 @@ QVTKWidget2::QVTKWidget2(QWidget* p, const QGLWidget* shareWidget, Qt::WindowFla
}
QVTKWidget2::QVTKWidget2(QGLContext* ctx, QWidget* p, const QGLWidget* shareWidget, Qt::WindowFlags f)
: QGLWidget(ctx, p, shareWidget, f), mRenWin(NULL)
: Superclass(ctx, p, shareWidget, f), mRenWin(NULL)
{
this->UseTDx=false;
mIrenAdapter = new QVTKInteractorAdapter(this);
......@@ -56,7 +56,7 @@ QVTKWidget2::QVTKWidget2(QGLContext* ctx, QWidget* p, const QGLWidget* shareWidg
}
QVTKWidget2::QVTKWidget2(const QGLFormat& fmt, QWidget* p, const QGLWidget* shareWidget, Qt::WindowFlags f)
: QGLWidget(fmt, p, shareWidget, f), mRenWin(NULL)
: Superclass(fmt, p, shareWidget, f), mRenWin(NULL)
{
this->UseTDx=false;
mIrenAdapter = new QVTKInteractorAdapter(this);
......@@ -288,7 +288,7 @@ bool QVTKWidget2::event(QEvent* e)
}
}
}
return QGLWidget::event(e);
return Superclass::event(e);
}
/*! handle mouse press event
......@@ -490,10 +490,10 @@ int QVTKWidget2::GetMultiSamples() const
void QVTKWidget2::setAutoBufferSwap(bool f)
{
QGLWidget::setAutoBufferSwap(f);
Superclass::setAutoBufferSwap(f);
}
bool QVTKWidget2::autoBufferSwap() const
{
return QGLWidget::autoBufferSwap();
return Superclass::autoBufferSwap();
}
......@@ -39,6 +39,7 @@ class vtkTDxDevice;
class VTKGUISUPPORTQTOPENGL_EXPORT QVTKWidget2 : public QGLWidget
{
Q_OBJECT
typedef QGLWidget Superclass;
public:
//! constructor
QVTKWidget2(QWidget* parent = NULL, const QGLWidget* shareWidget=0, Qt::WindowFlags f = 0);
......
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