kde-base/kate-4.7.4 failed to emerge with USE=kdeenablefinal: redefinition of "struct QMetaTypeId<QList<KTextEditor::Document*> >. The attached patch fixes the build by moving the duplicated definitions to a header file with include guard.
As per KDE team meeting decision, the kdeenablefinal useflag has been removed.
Patch committed upstream.