diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-08-10 13:03:12 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-08-10 13:03:12 (GMT) |
commit | 0650ec9effe5d9dd643d1bc19d2af591244671d4 (patch) | |
tree | 8fe16e4bc82392df862813cd9200ea377a324c5d /src/gui/accessible | |
parent | 9a6bd194d403f596d66fbe8aad43550310f48eca (diff) | |
download | Qt-0650ec9effe5d9dd643d1bc19d2af591244671d4.zip Qt-0650ec9effe5d9dd643d1bc19d2af591244671d4.tar.gz Qt-0650ec9effe5d9dd643d1bc19d2af591244671d4.tar.bz2 |
Fix documentation for QAccessible::InterfaceFactory
Reported to me by Martin P.
Diffstat (limited to 'src/gui/accessible')
-rw-r--r-- | src/gui/accessible/qaccessible.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index 0921bdb..a6d1dbd 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -409,13 +409,18 @@ static void qAccessibleCleanup() /*! \typedef QAccessible::InterfaceFactory - A function pointer type. Use a function with this prototype to install - interface factories with installFactory(). + This is a typedef for a pointer to a function with the following + signature: - The function receives a QObject pointer. If the QObject - provides a QAccessibleInterface, it sets the second parameter to - point to the corresponding QAccessibleInterface, and returns true; - otherwise returns false. + \snippet doc/src/snippets/code/src_gui_accessible_qaccessible.cpp 1 + + The function receives a QString and a QObject pointer, where the + QString is the key identifying the interface. The QObject is used + to pass on to the QAccessibleInterface so that it can hold a reference + to it. + + If the key and the QObject does not have a corresponding + QAccessibleInterface, a null-pointer will be returned. Installed factories are called by queryAccessibilityInterface() until one provides an interface. |