fixed Qt compiling errors