summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible
Commit message (Collapse)AuthorAgeFilesLines
* Make QStatusBar text available via accessibility.Tilman Sauerbeck2012-08-232-1/+6
| | | | | Change-Id: Iec3efb4b91bdba33fe93b928ff2349440e15aa35 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Implement QAccessibleLineEdit::characterRect()Jan-Arve Saether2012-08-161-3/+16
| | | | | | | | | It was probably not implemented because it needed to access private APIs. However, accessing those from this a11y plugin is unproblematic. Change-Id: Icadad45a83daa60e2fbc4cab17b91c84c3f36a7f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Accessibility: Add missing break;Jan-Arve Saether2012-08-141-0/+1
| | | | | | | Found while porting QAccessibleTextWidget to Qt 5 Change-Id: I6a8f69d859fad20949e8250f03dd18d4106cc31c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-0120-40/+40
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Accessibility: fix updates for models with rootIndex set.Frederik Gladhorn2012-07-301-6/+12
| | | | | | | | | The accessible table/list implementation would ignore when a root index is set, resulting in trying to use row/column for the top level index, leading to accessing invalid indexes. Change-Id: I2568522053bafe48458446dd2f47b68d98d634aa Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Fix crashes in QAccessibleTree::navigateFrederik Gladhorn2012-04-131-1/+7
| | | | | | | | It's a best practice to return 0 when the iface is invalid. Change-Id: I6dd70b53b975b10b75c246e6f8f7681da2bcb785 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Accessible interface for QPlainTextEditJosé Millán Soto2012-04-133-8/+83
| | | | | | | Added QAccessiblePlainTextEdit, as an accessible interface for QPlainTextEdit Change-Id: If0269a49b9fcd1b3e9fcfd32fac912560df28f21 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Use parentheses in statement with && and ||.Frederik Gladhorn2012-04-131-1/+1
| | | | | Change-Id: I4f968559a7371b87343cb5825eb83b0099364cf2 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Fix possible crash issue when testing the state of a QAccessibleMenuItemYan Shapochnik2012-04-131-2/+2
| | | | | | | The owner widget of a QAccessibleMenuItem may be NULL. Checking for a valid pointer before dereferncing. Change-Id: Ic3149ccc5d6ae0ebc83dae58163ae2f60397fd28 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Use QPointer to store accessible object.Frederik Gladhorn2012-04-112-86/+98
| | | | | | | | | Itemview were not following the established pattern of keeping the referenced object in a QPointer. This made them a lot more crash prone. Change-Id: I210b112b9c3647b246fde2d6c69aba9ce8d25bd3 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Fixed missing parenthesesRobert Loehning2012-03-051-1/+1
| | | | | | Change-Id: Ic0a2f9bb6a1d59261240fc0de85d6db52974c964 Reviewed-by: João Abecasis <joao.abecasis@nokia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Implemented QAccessibleTextWidgetJosé Millán Soto2012-02-212-179/+312
| | | | | | | | | | | | | | | A new class called QAccessibleTextWidget was added. This class should implement all methods of QAccessibleTextInterface and QAccessibleEditableTextInterface which only need a QTextCursor, and it defines two pure virtual methods, to obtain and set the text cursor, so accessible implementations of widgets which use a text cursor can implement these two methods. QAccessibleTextEdit is now a subclass of QAccessibleTextWidget and most of its methods were moved to QAccessibleTextWidget. Change-Id: Ie30e7b377cb9b381c2ef6017ecb188fd0fdeeddb Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Added QAccessibleGroupBoxJosé Millán Soto2012-02-103-18/+144
| | | | | | | | | | | | Added a new accessible interface for QGroupBox, as QAccessibleDisplay is not good enough when the QGroupBox is checkable. AccessibleFactory was modified to return a QAccessibleGroupBox when the accessible interface of a QGroupBox is requested. Created tst_QAccessibility::groupBoxTest Change-Id: I6c23dcf5562b3ea269b04102e78463b65827188a Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Make copy and cut methods work in QAccessibleTextEditJosé Millán Soto2012-02-061-3/+10
| | | | | | | | Correct the implementation of cutText and copyText in QAccessibleTextEdit so they use cut() and copy() methods of QTextEdit Change-Id: I86a531ed7059b1a928cb8515c2743d4d8b596b36 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Handle closable tabs in QAccessibleTabBarJosé Millán Soto2012-01-182-1/+68
| | | | | | | | | | Tab information was hidden by the closing buttons. Closing is implented by using doAction and actionText methods, as it's not possible to use QAccessibleActionInterface to send actions to child widgets in complex widgets. Change-Id: I0f55d5084737fa13c81df402f5dd54f11e164f8a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-1120-20/+20
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix accessible menu not returning child name.Frederik Gladhorn2011-09-231-1/+1
| | | | | | | | When accessible name is set, QAccessibleMenu would always return the menu's name, not that of the child action. Task-Number: QTBUG-21578 Reviewed-by: Jan-Arve
* Implement QAccessibleActionInterface for menu actions.Frederik Gladhorn2011-09-082-8/+83
| | | | | | | This allows to open and trigger menu items via actions using the dedicated action interface. Reviewed-by: Jan-Arve
* Style cleanup - space after flow control keywords.Frederik Gladhorn2011-07-131-3/+3
| | | | Reviewed-by: TrustMe
* Add IAccessible2 table2 implementation.Frederik Gladhorn2011-07-134-10/+1382
| | | | | | | | Implement the IAccessible table2 interface for itemviews. This is simpler than what we have in complexwidgets. For now it is only used on Linux. Reviewed-by: Gabi
* Use name for combobox on Unix.Frederik Gladhorn2011-07-121-5/+7
| | | | | | | This is more conforming to the AT-SPI specs. Also we have working relations for the label when a buddy is set. Reviewed-by: Gabi
* Rename textBeforeOffsetFromString to start with q.Frederik Gladhorn2011-07-081-6/+6
| | | | | | Exported functions should start with q. Reviewed-by: TrustMe
* Implement text interface for QLineEdit.Frederik Gladhorn2011-07-061-12/+28
| | | | | | | Add boundary helper functions to the QAccessibleTextInterface. Move LineEdit over to use QTextBoundaryFinder. Reviewed-by: Jan-Arve
* Fix a11y crash: dock doesn't always have a widget.Frederik Gladhorn2011-06-281-7/+12
| | | | | | Also return dock widget title. Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
* Incorrect property name in QAccessibleAbstractSpinBox::setCurrentValueJosé Millán Soto2011-06-231-1/+1
| | | | | Merge-request: 1263 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Merge remote-tracking branch 'upstream/4.8' into 4.8Frederik Gladhorn2011-06-1218-313/+414
|\
| * Ammend last commitHarald Fernengel2011-06-061-1/+1
| | | | | | | | Squelch coding style warnings
| * Implemented QAccessibleTextEdit::attributes()José Millán Soto2011-06-061-5/+106
| | | | | | | | | | | | | | | | Handling font properties and colors Created test: tst_QAccessibility::textAttributes Merge-request: 2626 Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
| * Changing cursor position in all boundariesJosé Millán Soto2011-06-061-1/+1
| | | | | | | | | | Merge-request: 1242 Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
| * Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-1318-307/+307
| | | | | | | | | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* | Remove more inconsistencies with invisible.Frederik Gladhorn2011-06-101-18/+0
| | | | | | | | | | | | | | Visible status should not influence child count and other properties. Reviewed-by: Jan-Arve
* | QAccessibleToolButton::text should return accessibleName if set.Frederik Gladhorn2011-06-101-1/+1
| | | | | | | | | | | | This was most likely a copy and paste error. Reviewed-by: Denis Dzyubenko
* | Remove stray semicolon.Frederik Gladhorn2011-06-101-1/+1
| | | | | | | | Reviewed-by: TrustMe
* | Do not expose text when echo mode is not Normal.José Millán Soto2011-06-101-0/+4
| | | | | | | | Reviewed-by: Frederik Gladhorn
* | Check validator when changing text using accessibility functions.José Millán Soto2011-06-101-1/+8
|/ | | | Reviewed-by: Frederik Gladhorn
* Return name and allow actions for invisible accessible items.Frederik Gladhorn2011-04-271-11/+2
| | | | | | | There is no reason not to report the name or allow actions when a widget is invisible. Reviewed-by: Morten Sorvig
* Don't crash when requesting text.Frederik Gladhorn2011-04-011-1/+5
| | | | | | | Sometimes during initialization the QAccessibleItemRow will still be in an invalid state. Reviewed-by: Jan-Arve
* Let QAccessibleButton::text return something even when not visible.Frederik Gladhorn2011-04-011-3/+0
| | | | | Buttons would not report their text when hidden, which is inconsistent. Reviewed-by: Jan-Arve
* Make navigation in TabWidgets consistent.Frederik Gladhorn2011-03-231-4/+9
| | | | | | | navigate would not return the right index in the parent if the current widget was not the visible one. Reviewed-by: Jan-Arve
* Fix text for checkable buttons, unit tests.Frederik Gladhorn2011-03-231-0/+17
| | | | | | | Return Check/Uncheck for checkable buttons. Partially revive the buttons unit test. Reviewed-by: Jan-Arve
* Window and Application fixes for accessibility.Frederik Gladhorn2011-03-231-1/+1
| | | | | | | Return app name instead of window title for root accessibility object. Return Window as accessible type for the main window. Reviewed-by: Jan-Arve
* QAccessibleTextEdit: Using x coordinate for calculate character widthJosé Millán Soto2011-03-221-1/+1
| | | | | | Merge-request: 1148 Task-number: QTBUG-18233 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2011-01-1718-18/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/webkit/imageanalyzer/imageanalyzer.h examples/webkit/imageanalyzer/mainwindow.h mkspecs/unsupported/qws/linux-x86-openkode-g++/qplatformdefs.h src/corelib/io/qfsfileengine_iterator_unix.cpp src/corelib/io/qfsfileengine_iterator_win.cpp src/corelib/kernel/qcoreapplication.cpp src/network/access/qnetworkaccessdatabackend.cpp src/plugins/bearer/connman/qconnmanservice_linux.cpp src/plugins/platforms/openvglite/qwindowsurface_vglite.h src/s60installs/bwins/QtCoreu.def src/s60installs/eabi/QtCoreu.def src/s60installs/s60installs.pro tools/assistant/tools/assistant/helpviewer_qwv.h tools/qdoc3/test/qt-html-templates.qdocconf
| * Update copyright year to 2011.Jason McDonald2011-01-1018-18/+18
| | | | | | | | Reviewed-by: Trust Me
* | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2010-10-251-3/+3
|\ \ | |/
| * Doc: Fixed qdoc warnings.David Boddie2010-10-071-3/+3
| |
* | Remove the use of deprecated qVariant*Olivier Goffart2010-08-063-4/+4
|/ | | | | | | | | | | | | | | Test directory untouched. This just apply those regexp: git grep -O"sed -i 's/qVariantValue</qvariant_cast</'" qVariantValue git grep -O"sed -i 's/qVariantSetValue(\([^&*\(),]*\), */\\1.setValue(/'" qVariantSetValue git grep -O"sed -i 's/qVariantSetValue *<\([^>]*\)> *(\([^&*\(),]*\), */\\2.setValue<\\1>(/'" qVariantSetValue git grep -O"sed -i 's/qVariantCanConvert *<\([^>]*\)> *(\([^&*\(),]*\))/\\2.canConvert<\\1>()/g'" qVariantCanConvert git grep -O"sed -i 's/qVariantCanConvert *<\([^>]*\)> *(\([^&*\(),]*([^&*\(),]*)\))/\\2.canConvert<\\1>()/g'" qVariantCanConvert git grep -O"sed -i 's/qVariantFromValue\( *[(<]\)/QVariant::fromValue\\1/'" qVariantFromValue git checkout src/corelib/kernal/qvariant* Rev-by: dev mailing list
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2010-07-211-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Revert "Compile fix for MSVC" Compile fix for MSVC Improve QAccessible for QAccessibleTabBar Improve QAccessible for QTabBar fix the export macros for the QtDBus module rebuild configure.exe make "configure -qt-gif" work again on Windows Fix a typo in harfbuzz thai line breaking. Ensure that font sizes that are > 0 and < 1 are still respected
| * Improve QAccessible for QAccessibleTabBarSebastian Sauer2010-07-211-2/+6
| | | | | | | | | | | | | | On QAccessibleTabBar::text return text of the current tab for the case the QTabBar itself is asked for it's Name. Merge-request: 2405 Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
* | Do not crash due to a infinite recursion when using voiceover on MacOSJan-Arve Sæther2010-07-201-2/+2
|/ | | | | | | | | | | | | | | | | | The reason for the infinite recursion was that QAccessibleTitleBar::object() returned the titlebar's dockwidget. This could lead to a problem when the AT client tried to traverse the accessibility hierarchy: As a response to QAXChildrenAttribute (retrieve children) on a dock widget node, it would register it's children in the hierarchy manager. In this case, the object registered for the titlebar interface was the QDockWidget. In order to do further traversal, the bridge could call queryAccessibleInterface on the list of retrieved children to get the QAccessibleInterface for those objects, however, that would return the QAccessibleDockWidget interface that we just had traversed,.... Task-number: QTBUG-6843 Reviewed-by: Carlos Manuel Duclos Vergara