Restore compatibility with old Qt versions.