Qt5 support

This is based on VanNostrand's initial qt5 port; compiles and run fine on - at least - osx.
I'd like to remove the #ifdef at all since beginResetModel() and endResetModel(); exist also in Qt4 >= 4.6. Is requiring Qt4.6 an acceptable constraint?