Fixed a Qt5 only call to a Qt4/Qt5 call

The code simply removes the use of a Qt5 specific method
to a method that can run on both Qt4 and Qt5.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>