Fixed QT4 compatibility of previous commits.