Hello Pablo,

Pablo Carneiro Elias wrote:
> the code snippet that causes the error is this one:
> 
> line 56:    if( e->type() != QEvent::KeyPress || object != ui.inputArea )
> line 57:        return false;

oh, now I understand it, this happens somewhere in your code - was still 
puzzling why I did not see this in my builds.

> X11 define KeyPress (as a preprocessor definition) and Qt uses it as an 
> Enum. If I replace QEvent:KeyPress for it constant value (6), it works...

hm, I don't see an easy way to avoid us including <GL/glx.h> (which 
drags in a bunch of X11 headers), because that would make it impossible 
to have a class with members of those types - or member fields that 
store the types in our case.
The only thing I can suggest immediately is to do what the boost folks 
do with std::min/std::max, writing it as (std::max)(a, b) or in your case:

line 56: if( e->type() != (QEvent::KeyPress) || object != ui.inputArea )
line 57:     return false;

How many instances of this kind of error are you seeing?

        Cheers,
                Carsten

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to