From 98a63784b441543407c2a4a8cf88e921f5099af4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Dec 2009 12:49:59 +0000 Subject: [PATCH] Fixed warnings --- examples/osgQtBrowser/QGraphicsViewAdapter.cpp | 4 ++-- examples/osgQtBrowser/QGraphicsViewAdapter.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;