Make command-quit not terminate the program on Qt/Cocoa. Instead instigate the quit by calling QApplication::quit(), using the code that was already in place. This allows QApplication::exec() to return normally and prevents resrouce leaks for objects created on the stack in main().
Make command-quit not terminate the program on Qt/Cocoa.
Instead instigate the quit by calling QApplication::quit(), using the code
that was already in place. This allows QApplication::exec() to return normally
and prevents resrouce leaks for objects created on the stack in main().

Reviewed-by: nrc

radekp/qt,KDE/qt,RLovelett/qt,RLovelett/qt,RLovelett/qt,RLovelett/qt,radekp/qt,igor-sfdc/qt-wk,radekp/qt,KDE/qt,KDE/qt,KDE/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,igor-sfdc/qt-wk,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,KDE/qt,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,KDE/qt,RLovelett/qt,radekp/qt,radekp/qt,igor-sfdc/qt-wk,KDE/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,radekp/qt,radekp/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,KDE/qt