changed Qt version switch to boolean type