[Qt4] New function setDebugErrorFunction().

This new function + typedef can be useful to direct the ebug/error messages
to a different place than the default qDebug()'s one.

Base on an idea of Albert, added closure and polish by me.
2 files changed