backward compatibility added for Qt 4.8 and lower