initial move of code from qt4 to qt5 (not everything set up for qt5 just yet)