Fix for pre-Qt5.2