Fix compiling with qt5 after commit
f96d31bae5671baf8eddc32446f5694ac16878cc