Attempt to fix a strange bug on windows xp where CodeEdit loose its type and become a QWidget

(not sure if that really fix the issue since this issue is pretty hard to reproduce)