IMO, It's just another reason why you should never have such ambiguous symbols in your code base. I dislike code which is like this (Although I don't avoid such code unless it's small or easily rewritten). Either put the enum in a class, or prefix it with the subsystem its involved with. Eg. if "None" is associated with the event code, then it should be named "QtEvent_None".