0f918ee5c9
This gives arise to the requirement that a static initialization of a QObject cannot occur for the Android platform, as Qt incorrectly considers that first thread the “main” one before a client application has even begun executing in its second thread. The HeartBeat in GraphicsWindowQt.cpp is a QObject static global initialized at load time, causing the above issue. This changeset changes it to be a singleton that is constructed upon first access to its “instance” method. I have: - added the static method “instance”, - moved its constructor to be private, and - changed the one place it is accessed to access it through the “instance” method. " Changes by Robert are to adopt QPointer<HeartBeat> rather than use a C pointer to ensure that the HeartBeat object will be cleaned up automatically rather than leaked. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14963 16af8721-9629-0410-8352-f15c8da7e697 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
GraphicsWindowQt.cpp | ||
QFontImplementation.cpp | ||
QGraphicsViewAdapter.cpp | ||
QWidgetImage.cpp | ||
Version.in |