Recent changes in pinentry-qt (a421ae8 and 84d473f) made use of features only available in Qt5, namely the QWindow class and the possibility to use a lambda instead of a slot in QTimer::singleShot. This resulted in pinentry-qt failing to build against Qt4.
This patch tries to restore support for Qt4.