afbfe30093
The documentation for the RelationFlag enum was not very clear on what was the "first" and "second" object. And the fact that the AT-SPI backend (which these enum values originates from) inverses "first" and "second" makes it harder to understand what how it all fits together. So when (with this change) Qt documents 'QAccessible::Labelled' as "The returned object is labelled by the origin object" AT-SPI documents ATSPI_RELATION_LABELLED_BY as: "The origin object is labelled by the returned object" (Documentation for AT-SPI is rewritten so that it shares the same terminology) Notice that the two objects are exchanged, which means that even if they use the same 'Labelled' relation, the semantic gets 'inversed'. This is already the case today, so we cannot change it. Therefore, to be clear, the relation mapping will remain to be like this: Qt Relation | Maps to AT-SPI | Qt explanation ----------------+-------------------------------+-------------------------------------------------------------------------------- Label | ATSPI_RELATION_LABELLED_BY | The returned object is a Label for the origin object Labelled | ATSPI_RELATION_LABEL_FOR | The returned object is Labelled by the origin object Controller | ATSPI_RELATION_CONTROLLED_BY | The returned object is the Controller for the origin object Controlled | ATSPI_RELATION_CONTROLLER_FOR | The returned object is Controlled by the origin object This mapping can already be seen in qAccessibleRelationToAtSpiRelation() For the record, these future relations should then be mapped to like this: Qt Relation | Maps to AT-SPI | Qt explanation ----------------+-------------------------------+-------------------------------------------------------------------------------- Described | ATSPI_RELATION_DESCRIPTION_FOR| The returned object is described by the origin object DescriptionFor | ATSPI_RELATION_DESCRIBED_BY | The returned object provides a description for the origin object FlowsTo | ATSPI_RELATION_FLOWS_FROM | The returned object has content which flows logically to the origin object FlowsFrom | ATSPI_RELATION_FLOWS_TO | The returned object has content which flows logically from the origin object Change-Id: Ib245ec95564e4886dc6dbbb68abec2b23cd0e534 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> |
||
---|---|---|
.. | ||
gestures | ||
languagechange | ||
macgui | ||
macnativeevents | ||
macplist | ||
networkselftest | ||
qabstractitemmodelutils | ||
qaccessibility | ||
qaccessibilitylinux | ||
qaccessibilitymac | ||
qcomplextext | ||
qfocusevent | ||
qnetworkaccessmanager_and_qprogressdialog | ||
qobjectrace | ||
qprocess_and_guieventloop | ||
qsharedpointer_and_qwidget | ||
qvariant_common | ||
sessionmanagement_macos | ||
toolsupport | ||
xkbkeyboard | ||
CMakeLists.txt |