Merge "Make sure the color space range is checked properly." into qt-dev