From 649e0b6002490decfff6477d15229786e9db8f9c Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Wed, 25 Sep 2013 17:09:17 +0200 Subject: AccessibleRelation::get_relationType didn't handle all enum values. Add some more tests for relations Change-Id: I934cd6aed36ca5ca88786325ed364fbc3abfc6f7 Reviewed-by: Frederik Gladhorn --- src/plugins/platforms/windows/accessible/iaccessible2.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/plugins/platforms/windows') diff --git a/src/plugins/platforms/windows/accessible/iaccessible2.h b/src/plugins/platforms/windows/accessible/iaccessible2.h index a391d495f9..9c922dce36 100644 --- a/src/plugins/platforms/windows/accessible/iaccessible2.h +++ b/src/plugins/platforms/windows/accessible/iaccessible2.h @@ -331,9 +331,21 @@ private: { wchar_t *constRelationString = 0; switch (relation) { + case QAccessible::Label: + constRelationString = IA2_RELATION_LABEL_FOR; + break; + case QAccessible::Labelled: + constRelationString = IA2_RELATION_LABELLED_BY; + break; + case QAccessible::Controller: + constRelationString = IA2_RELATION_CONTROLLER_FOR; + break; case QAccessible::Controlled: constRelationString = IA2_RELATION_CONTROLLED_BY; break; + case QAccessible::AllRelations: + constRelationString = ( L"AllRelations" ); + break; } if (constRelationString) { -- cgit v1.2.3