qt5: toAscii() -> toLatin1()
qt5: include QMimeData
use begin/end resetmodel
qt5: full qt5 compability

ifdef rest of the code which can't be ported 100%
add CMake option USE_QT5 to use qt5 ;)
Thanks to stretchtiberius for initial patch