Fix compiler warning
Partial revert "Compile with Qt5"

This reverts commit 878ae56a7186aac2d43901c262939bdbc26e3536.