Fixed broken Qt4 compatibility