Brainweaver: working on both Qt4 and Qt5