Fix Qt 5 upgrade broke shutdown ask on quit suppression (#1362)

In Qt 5 QApplication no longer has the commitData function previously
overridden to detect system shutdown. Now using commitDataRequest signal
which is available in Qt 4 and 5 on the object instead.
Split up long HEADERS, SOUCES and FORMS lines to improve readability.