tried to fix som Qt4.7isms in debug code