diff --git a/examples/osgQtBrowser/QGraphicsViewAdapter.cpp b/examples/osgQtBrowser/QGraphicsViewAdapter.cpp index c313c65e2..58cb16fd5 100644 --- a/examples/osgQtBrowser/QGraphicsViewAdapter.cpp +++ b/examples/osgQtBrowser/QGraphicsViewAdapter.cpp @@ -57,8 +57,8 @@ struct MyQPointerEvent : public QEvent QGraphicsViewAdapter::QGraphicsViewAdapter(osg::Image* image, QWidget* widget): _image(image), - _backgroundColor(255,255,255), - _qtKeyModifiers(Qt::NoModifier) + _qtKeyModifiers(Qt::NoModifier), + _backgroundColor(255,255,255) { // make sure we have a valid QApplication before we start creating widgets. getOrCreateQApplication(); diff --git a/examples/osgQtBrowser/QGraphicsViewAdapter.h b/examples/osgQtBrowser/QGraphicsViewAdapter.h index 851c3b11d..d72800905 100644 --- a/examples/osgQtBrowser/QGraphicsViewAdapter.h +++ b/examples/osgQtBrowser/QGraphicsViewAdapter.h @@ -58,7 +58,7 @@ class QGraphicsViewAdapter : public QObject osg::observer_ptr _image; - unsigned int _previousButtonMask; + int _previousButtonMask; int _previousMouseX; int _previousMouseY; @@ -71,7 +71,7 @@ class QGraphicsViewAdapter : public QObject QPointer _graphicsScene; OpenThreads::Mutex _qimagesMutex; - unsigned int _previousFrameNumber; + int _previousFrameNumber; bool _newImageAvailable; unsigned int _currentRead; unsigned int _currentWrite;