In my application I use QCoreApplication::loopLevel.
Since this method is part of the Qt3-support-layer, I want to get rid of it.

Documentation says that I should use the QAbstractEventDispatcher instead, but I have absolutely no clue on how to write a function using the QAbstractEventDispatcher that would give me the same return value as QCoreApplication::loopLevel.

Where do I start?