Qt: Expose document-supplied text direction