There's no sign of KGlobal (obviously, it's been moved to kdelibs4support)
or any other similar code in KMainWindow, so remove the outdated paragraph
from the documentation.
Please don't remove this, but port it to QEventLoopLocker.
src/kmainwindow_p.h:59: QEventLoopLocker locker; so the refcounting effect is the same as documented, just with a different "backend".