Adding compatibility for QT4 again