Koko uses KDirModel in QML, but it has some issues like QWidgets dialogs with error messages popping up. The model itself isn't depending on Widgets, but it uses other stuff from KioWidgets.
joburlcache_p.h should be straightforward to move to core
fileundomanager has some widgets depencencies that need to be untangled first