Qt3 / Qt4 include files mixup
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The attached patch addresses a problem where both Qt3 and Qt4 are installed in the system. Qt3 install files in ${PREFIX}/include, while Qt4 defaults to ${PREFIX}/include/qt4.
Since ${PREFIX}/include is added to INCLUDE_DIRECTORIES before the specific Qt4 include path, some Qt includes are taken from the Qt3 installation. The patch fixes it by using specific Qt4 include-style (qtsomename.h --> QtSomeName) where possible, and by specifying the Qt/ subdirectory where the new name does not exist (see, qglobal.h).