Add missing #include<QModelIndex> for GCC

This is needed for me to build with GCC 4.8.2.