Qt4 compatibility update.

Fixes e40409d342313f91078bd13f29c36c1366b5f713 ;-)