From ae79bebd82a52737e23f03d484c0b7f53bf0f163 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Nov 2006 16:25:12 +0000 Subject: [PATCH] Added QWidget style constructor parameters --- examples/osgsimpleviewerQT3/osgsimpleviewerQT3.cpp | 4 +++- examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/osgsimpleviewerQT3/osgsimpleviewerQT3.cpp b/examples/osgsimpleviewerQT3/osgsimpleviewerQT3.cpp index 298668c99..fea4ccf6f 100644 --- a/examples/osgsimpleviewerQT3/osgsimpleviewerQT3.cpp +++ b/examples/osgsimpleviewerQT3/osgsimpleviewerQT3.cpp @@ -92,8 +92,10 @@ void GraphicsWindowQT::mouseMoveEvent( QMouseEvent* event ) class SimpleViewerQT : public osgViewer::SimpleViewer, public GraphicsWindowQT { public: - SimpleViewerQT() {} + SimpleViewerQT(QWidget * parent = 0, const char * name = 0, const QGLWidget * shareWidget = 0, WFlags f = 0): + GraphicsWindowQT( parent, name, shareWidget, f ) + {} virtual void initializeGL() { diff --git a/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp b/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp index db1769b4b..95eb96427 100644 --- a/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp +++ b/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp @@ -92,8 +92,9 @@ void GraphicsWindowQT::mouseMoveEvent( QMouseEvent* event ) class SimpleViewerQT : public osgViewer::SimpleViewer, public GraphicsWindowQT { public: - SimpleViewerQT() {} + SimpleViewerQT( QWidget * parent = 0, const char * name = 0, const QGLWidget * shareWidget = 0, Qt::WFlags f = 0 ): + GraphicsWindowQT(parent, name, shareWidget, f) {} virtual void initializeGL() {