Well that does appear to be the problem. Not being a developer, I don't know how to fix it though :)
Various .moc files (which I assume are autogenerated) contain calls/references to QCString, QByteArray, QCommonStyle, QApplication etc. Fixing up these in the moc files allows progression to the next erroneous file. I'll look see if I can work out what goes on to create these files ...... but I wouldn't hold your breath :)
Tim will have to explain what has heppened. I did a quick grep of tdelibs and tdebase and there are quite a few function calls without the "TQ" prefix. I don't know whether this is intentional or accidental. :)
Darrell