Imp: Compatibiliity for Qt5

These changes allow the application to work correctly in Qt5