Fix compatibility with QT4 in QTimer usage