replace types with QS constants

for compatibility with 1.2.0+