Accessibility: Add Text::DebugDescription

Useful for debugging QML accessibility.

Change-Id: I814c64bcc4c6b534666adca5865b1588e4d13f44
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
Morten Johan Sorvig 2011-12-01 21:32:37 +01:00 committed by Qt by Nokia
parent 33fe499d47
commit 77fb1c71bf
2 changed files with 2 additions and 1 deletions

View File

@ -255,6 +255,7 @@ public:
Value,
Help,
Accelerator,
DebugDescription,
UserText = 0x0000ffff
};

View File

@ -351,7 +351,7 @@ AccessibilitySceneManager::TreeItem AccessibilitySceneManager::computeLevels(QAc
// capture information:
currentLevel.name = interface->text(QAccessible::Name);
//currentLevel.description += interface->text(QAccessible::DebugDescription);
currentLevel.description += interface->text(QAccessible::DebugDescription);
currentLevel.role = translateRole(interface->role());
currentLevel.rect = interface->rect();
currentLevel.state = interface->state();