aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible/quick
Commit message (Collapse)AuthorAgeFilesLines
* Accessibility: Use factory function instead of pluginFrederik Gladhorn2014-03-277-972/+0
| | | | | | | | [ChangeLog][QtQuick] Accessibility for Qt Quick is now included in the qtquick library instead of being a separate plugin. Change-Id: I26a7ed14b8a387662cea8f89218485be50033e34 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Accessibility: add states to QQuickAccessibleAttachedFrederik Gladhorn2014-01-271-41/+13
| | | | | | | This makes it possible to set the state of accessible objects in qml. Change-Id: Ide70b885dac8fed180d2b221540cf2b699ac78ff Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* On Mac only editable ComboBox should receive tab focusFrederik Gladhorn2014-01-111-1/+4
| | | | | | | | | [ChangeLog][QtQuickControls] Mac: ComboBox will only get tab focus when it is editable. Change-Id: Ife04de67b2e3dea77ba878b247ad0b676c879c02 Reviewed-by: Liang Qi <liang.qi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Accessibility: mark more items as focusableFrederik Gladhorn2014-01-061-1/+17
| | | | | Change-Id: I8b5189bdf46305ad11f2dd1e689423152e542dcf Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Accessibility: quick items are not visible when their window is notFrederik Gladhorn2014-01-061-1/+1
| | | | | Change-Id: I126b0ca7414b03f17834ca8e90dd84c9d1c44add Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Remove include of empty QAccessible2 headerFrederik Gladhorn2013-11-091-1/+0
| | | | | Change-Id: I62dd3364909179c364e91682e4cece8ae5a847d4 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
* Merge branch 'dev' of ssh://codereview.qt-project.org/qt/qtdeclarative into ↵Simon Hausmann2013-06-243-27/+175
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wip/v4 Conflicts: src/imports/qtquick2/plugins.qmltypes src/qml/debugger/qv8debugservice.cpp src/qml/qml/qml.pri src/qml/qml/qqmlcompiler.cpp src/qml/qml/qqmlcomponent.cpp src/qml/qml/qqmlcontext.cpp src/qml/qml/qqmldata_p.h src/qml/qml/qqmlengine_p.h src/qml/qml/qqmljavascriptexpression.cpp src/qml/qml/qqmlxmlhttprequest.cpp src/qml/qml/v4/qv4bindings.cpp src/qml/qml/v4/qv4irbuilder.cpp src/qml/qml/v4/qv4jsonobject_p.h src/qml/qml/v8/qqmlbuiltinfunctions.cpp src/qml/qml/v8/qv8bindings.cpp src/qml/qml/v8/qv8contextwrapper.cpp src/qml/qml/v8/qv8listwrapper.cpp src/qml/qml/v8/qv8qobjectwrapper.cpp src/qml/qml/v8/qv8qobjectwrapper_p.h src/qml/qml/v8/qv8sequencewrapper_p_p.h src/qml/qml/v8/qv8typewrapper.cpp src/qml/qml/v8/qv8valuetypewrapper.cpp src/qml/types/qqmldelegatemodel.cpp src/quick/items/context2d/qquickcanvasitem.cpp src/quick/items/context2d/qquickcontext2d.cpp sync.profile tests/auto/qml/qjsengine/tst_qjsengine.cpp tests/benchmarks/qml/animation/animation.pro tools/qmlprofiler/qmlprofiler.pro Change-Id: I18a76b8a81d87523247fa03a44ca334b1a2360c9
| * Accessibility: Fix crash when accessing accessible children.Frederik Gladhorn2013-05-281-4/+2
| | | | | | | | | | | | | | | | | | | | The window would create new child interfaces every time it's children are queried. Instead properly use the crash. Task-number: QTBUG-31417 Change-Id: Ifc7bbdbdb9a506fe04a348fba643f1d52a6157e7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
| * Be more strict about accessible text selectionFrederik Gladhorn2013-04-291-2/+7
| | | | | | | | | | Change-Id: I0eda4c29235035824105992f3db2d9a0c06dc6b5 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
| * Implement a basic accessible text interfaceFrederik Gladhorn2013-04-262-21/+163
| | | | | | | | | | Change-Id: Ic8a807f9de66d2d13da1193fe6e2abb7ccccb2a2 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
| * Fix crash on empty child list in QAccessibleQuickWindow::rootItem().Friedemann Kleint2013-04-181-2/+5
| | | | | | | | | | Change-Id: I07f1482216c3147bf851046e61a56ec74f074dea Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* | Fix compilation with built-in v4vm JS engineSimon Hausmann2013-04-151-1/+1
|/ | | | | Change-Id: Ieda9267e296acf6392a5461f4cfb9233a7a409a0 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Enable accessibility again.Frederik Gladhorn2013-03-221-1/+1
| | | | | | | | | Revert "Disable accessibility temporarily." This reverts commit 361015dc73b887026e1937da09c11df89acf5c85. Change-Id: Ie1d053fe64ee79fbd9e57bf2d0d2764bb638db72 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Accessibility: Adapt memory management for Qt 5.1Frederik Gladhorn2013-03-051-1/+1
| | | | | | | | The model was changed to cache interfaces, so do not try to delete them. Change-Id: I5a97a6aca38036803c62d90988bb6d02196f0b84 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Silence compiler warnings in qaccessiblequickitem.h.Friedemann Kleint2013-01-141-9/+9
| | | | | | | | Introduced by c8ef32e2b6cded37a6854b94a281464c1b7a298b. Change-Id: I654009b38f0169254c05398468d4fe4c2737dd5b Reviewed-by: Alan Alpert <aalpert@rim.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-105-5/+5
| | | | | | Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Accessibility: Work with QQuickWindowFrederik Gladhorn2013-01-044-29/+37
| | | | | | | | | | | Before we would only be accessible when QQView was used. While the window has the content item, that one will not appear in the hierarchy of accessible objects since it has no valueable properties to expose. Instead it's first child will be used (which was the case before when QQView was used). Change-Id: I03cefb5c8dcd8296d51ff2bfcb677386a5f1d698 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Accessibility: Improve interface handling in QuickFrederik Gladhorn2012-12-193-41/+59
| | | | | | | | | | | | | | | | | | This changes how interfaces are handled: the QAccessibleQuickItem will simply subclass all interfaces and dynamically return 0 or the appropriate interface_cast. This makes our implementation a lot more flexible. To make use of the value interface, only a value property is needed (together with a corresponding role). Since the implementation of the interfaces became simpler, the value interface and some text interface improvements go along with the change. Change-Id: I003ec3016d48d730a4acac467bce322167842f4d Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Add PLUGIN_CLASS_NAME to qtdeclarative pluginsMiikka Heikkinen2012-12-111-0/+1
| | | | | | | | Needed for automating static plugin loading. Task-number: QTBUG-28131 Change-Id: I558a0f83c69179d3838c64fee069cc0e9c1d67cb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Accessibility: add stepSize to value interface.Frederik Gladhorn2012-11-152-0/+6
| | | | | Change-Id: I4c654837c37dbef8f6f407387ce4ea82cb3b821b Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* All QWindow properties that have "window" in them have been renamed.Shawn Rutledge2012-11-081-1/+1
| | | | | | | Depends on patch Ie4424ec15fbdef6b29b137f90a2ae33f173edd21 in qtbase. Change-Id: I9614cc2c7ed119c663b3f6f99267483e291e529c Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* adjust to qt_plugin.prf changes, part 2Oswald Buddenhagen2012-11-011-1/+0
| | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. Change-Id: I2dab25a2527d376eaa37f233782ffe4b6a58b8f8 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* adjust to qt_plugin.prf changes, part 1Oswald Buddenhagen2012-10-291-0/+2
| | | | | | | | PLUGIN_TYPE will need to be defined. do this before the respective change in qtbase, due to the reverse dependency. Change-Id: I97e7574b48512958689dab0c0697f2edc8666807 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Remove interim compatibility measuresAlan Alpert2012-10-161-2/+2
| | | | | | | | Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-235-120/+120
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* QQuickCanvas renamesAlan Alpert2012-07-171-13/+13
| | | | | | | | | | | | | | | | QQuickCanvas is now called QQuickWindow QQuickCanvas::rootItem is now QQuickWindow::contentItem QQuickItem::canvas is now QQuickItem::window QQuickItem::ItemChangeData::canvas is also renamed window QQuickCanvas::grabFrameBuffer is now QQuickWindow::grabWindow The functions related to the color property have dropped the clear from their names. The first three changes have interim compatibility measures in place to ease the transition. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d2 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix warnings about multiple rules for install_targets.Friedemann Kleint2012-07-101-7/+0
| | | | | | | | | | | - Remove the accessility scope from the profile since the parent plugins.pro already does that - Remove the target lines since they are also in ../shared/qaccessiblebase.pri. Change-Id: I6d95bf43b4dd9de8627713df2eecac5cd526cd79 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Allow mouse interaction with 0 opacity items.Andrew den Exter2012-07-041-1/+1
| | | | | | | | | | | Don't filter event delivery to items with 0 opacity, and update the documentation the for opacity, visible and enabled properties and how each affects event delivery. Task-number: QTBUG-19193 Change-Id: Id48e4af763c9a7bbcc13b303342d303155dcadc9 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* remove stale references to QTDIR_buildOswald Buddenhagen2012-06-291-3/+3
| | | | | | | | | | | after the buildsystem changes, qtbase's .qmake.cache is not longer included by other modules, thus the QTDIR_build condition will now never trigger, causing various breakages. and as nowadays modules can be build as part of qt or standalone without any changes, the conditon makes no sense to start with. Change-Id: I4a2ed6153577b6d064ab0dc407ce99f31b1263ac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fix compilation for QT_NO_ACCESSIBILITYTasuku Suzuki2012-06-091-1/+3
| | | | | Change-Id: Ic817ab15cb31bcd1c35ba5fab163dc0f52c36609 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Accessible plugin build: Do not install before make installAnselmo L. S. Melo2012-06-051-1/+3
| | | | | | | | | When prefix is set, libqtaccessiblequick.so was created in the install directory. This patch fixes this behavior. Change-Id: I3fe47841676e4ef8912498b6a1d8a42a55a4d6ac Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Accessibility: Implement invisible and checkable stateJan-Arve Saether2012-05-221-1/+4
| | | | | Change-Id: I3a079b4171e611b0136ef1582f6f16f71cf8f340 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Accessibility: Do not look for the "text" property as a last resort.Jan-Arve Saether2012-05-161-5/+0
| | | | | | | | | | This does not work very well with items where the text property is just an alias to the concrete property on a child item. The screen reader might then read aloud the text twice, one for the item with the alias, and another time for the child item. Change-Id: I11764c2988b1b3b10b6d80ed8978ef2191d51097 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-042-2/+2
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I03084595ddc425a988374b8352fd23e9504ffba6 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Create accessible interfaces only for items with attached propFrederik Gladhorn2012-04-102-2/+11
| | | | | | | | | | | | | | If the attached property is not found, ignore the item, unless it is part of the tree. We still create a valid hierarchy this way, but filter out all irrelevant items. The same goes for hit-testing. On the other hand this patch enables the root item to be found by setting isAccessible on it when updating the flags. Otherwise the hierarchy is not valid again. Change-Id: Ied422fd0506d13458757c87a5dad7cdb9d3079bf Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Make sure we get a valid accessibleInterface in child_helper.Frederik Gladhorn2012-03-231-1/+1
| | | | | | | | With filtering out more items from the tree of accessibles make sure that if we get 0 returned we don't crash. Change-Id: I7926ab66cd037952f7042dc46092cf5e2096d7c6 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Filter accessible objects.Frederik Gladhorn2012-03-231-1/+8
| | | | | | | | | | Only include objects in the hierarchy if either they or their descendants are accessible. Change-Id: I4ed01ccfa2b095a5205f72af97acb6c8dbaa3e74 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Add active and invisible states for accessibility.Frederik Gladhorn2012-03-231-1/+8
| | | | | | | QQuickView should expose the right states. Change-Id: I38c0ce8bea46a749efb0b9085fb0f646538698b2 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Check that canvas is valid.Frederik Gladhorn2012-03-121-1/+1
| | | | | | | During creation the canvas might not have been set. Change-Id: I7ea8922413e3b6fb4ffd2ed9758c57eea1de02db Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Accessibility: childAt_helper descends too far.Morten Johan Sorvig2012-03-121-0/+5
| | | | | | | | | | | | | | | Recursive hit-testing using childAt_helper must stop when it hits a leaf accessibility item. This leaf item might not be a leaf item in Qt Quick - a button contains text and mouse area items not visible to the accessibility system for example. Get the accessible interface and check if it has children before recursing to the child items. Change-Id: I2cc286cde4bce6b4ca340e8a1819edc5f84006a5 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Improve accessibility action support for Qt QuickMorten Johan Sorvig2012-03-071-0/+1
| | | | | | | | | | | Add interface_cast for the action interface. Implement actions for the following roles: Button : Press CheckBox, RadioButton : Press, Check, Uncheck Slider, Spinbox, Dial, ScrollBar : Increment, Decrement Change-Id: Ic8e0d17c709ba51655f3f4b699092baf603b6f18 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Check for parent item before calling functions on it.Frederik Gladhorn2012-03-061-1/+1
| | | | | Change-Id: Ic4066d133ef16ce8cf11fcb9fb5ddcc19599e85d Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Merge master <-> api_changesMatthew Vogt2012-03-053-3/+10
|\ | | | | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
| * Use new plugin system in QtDeclarative.Friedemann Kleint2012-02-233-3/+10
| | | | | | | | | | | | | | | | - Use prefix "org.qt-project" for interfaces. - Use new macros, add json files. Change-Id: I53df83f95153c5c9c462098584606284470a5ae0 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-246-11/+11
|/ | | | | | | | | | | | | Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove QAccessibleInterface::navigate()Jan-Arve Saether2012-02-174-19/+0
| | | | | | | | Hierarchical navigation has been moved to parent() and child(), relationships have been moved to relations() Change-Id: I4313eb3a6ed8b4812a347bb27b4d62f4f62ee9d5 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* QtDeclarative/Quick: Fix warnings.Friedemann Kleint2012-02-161-0/+2
| | | | | Change-Id: I71bd638fcc41356e0b76df27ec76ad3ed5ef90d9 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-305-5/+5
| | | | | | | | | | 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: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-235-5/+5
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Use queryAccessibleInterface instead of new QAccessibleQuickItemJan-Arve Saether2012-01-201-7/+2
| | | | | | | | | In some cases this could prevent us from actually returning the expected QAccessibleQuickItemValueInterface. This is also more future-proof in case we add more QAI subclasses. Change-Id: Id66dc21418671a3045d93c0a44dc74aa0aff30af Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>