After upgrading to Qt 4 (I meant to install KDE 4, but I didn't), some KDE packages and applications (such as kdesdk and kaffeine) can't compile anymore. I always get errors like:
kaffeinepart.moc:12:2: #error "The header file 'kaffeinepart.h' doesn't include <QObject>."
In file included from kaffeinepart.cpp:23:
kaffeinepart.moc:73: error: `const QMetaObject KaffeinePart::staticMetaObject' is not a static member of `class KaffeinePart'
kaffeinepart.moc:73: error: variable `const QMetaObject KaffeinePart::staticMetaObject' has initializer but incomplete type
kaffeinepart.moc:79: error: prototype for `const QMetaObject* KaffeinePart::metaObject() const' does not match any in class `KaffeinePart'
kaffeinepart.h:40: error: candidate is: virtual QMetaObject* KaffeinePart::metaObject() const
The bold part is common to both kdesdk and kaffeine (except for the header file name) and the rest is similar (if not the same) too.