Revert "Avoid SEGV when destroying QCoreApplication."

This reverts commit 66fbe1602b4beefd6ec1b2c2b07da742b6dd396d.

I believe that correct fix is to not set the parent for the proxy.

Signed-off-by: Branislav Katreniak <bkatreniak@nuvotechnologies.com>
qtSignalForwarder: Don't set parent for proxies.

I don't see reason to set parent to them.
The proxy may look like a leak in valgrind,
but qt itself is not clear here.

Setting parent to the proxy prevents starting proxy in different thread
than the main application thread.

Signed-off-by: Branislav Katreniak <bkatreniak@nuvotechnologies.com>
qtSignalForwarder: add support for non-application threads.

Every thread has its own proxies.

Signed-off-by: Branislav Katreniak <bkatreniak@nuvotechnologies.com>
Use Q_GLOBAL_STATIC() to manage the per-thread arrays of proxies

The QThreadStorage instance must have a lifetime greater than
the objects it manages.
Merge pull request #7 from katreniak/bka-nonApplicationThreads

Add support for non-application threads