Remove undefined method
Fix warning when including qglobal.h

Fix "Inclusion of header files from include/Qt is deprecated.".

The real problem is that ${KDE4_INCLUDES} from find_package(KDE4)
includes $QTDIR/include/Qt. However, we don't control the find script,
hence let's fix it this way.