remove global QApplication *application

.. it is available from the macro qApp anyway.