What about using osg widgets instead?

-- A.

Sent from my iPhone

On Aug 28, 2009, at 6:01 AM, Maxim Gammer <maxgam...@gmail.com> wrote:

Hello,

I've got a proposal to make changes in OSG for better compatibility with QT.

Method's name "emit" needs to be replaced in namespace osgParticle.

The thing is that "emit" is a name of the macros in QT. Of course, we can redefine "emit" like that:

#ifdef emit
#define MACRO1_SAVE emit
#endif
#undef emit
.....#include <osg....>
#ifdef MACRO1_SAVE
#define emit MACRO1_SAVE
#undef MACRO1_SAVE
#endif

, but this solution won't let us use signal/slot stuff.

It seems that QT preprocessor replaces "emit" in program listing.

The simpliest way to solve that - change method name from "emit" to something else. This will let us using signal/slot things in QT.

--
Maxim Gammer

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to