debug functionality for qt

debug functionality for qt added with the safe ifdef macro, this will
prevent undefined header file from other ides like vs2010