Add missing QModelIndex include
Qt 4 compatible plugins
Register TextDocument* (used as variant) as a metatype
Add missing QHash include
Fix Qt 4 shadow build