aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Initial checkin for ZoomTool implementationSimjees Abraham2012-03-268-3/+431
| | | | | Change-Id: I0f2c8906a48b0c1d45fb980a349a8ffb135130b5 Reviewed-by: Kai Koehne <kai.koehne@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>
* Fix doAction with custom functions.Frederik Gladhorn2012-03-211-3/+3
| | | | | | | When calling invokeMethod, pass the function name without parentheses. Change-Id: I5a5a28242a98bf76347450b799c1d51c293f9ef4 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Debugger: Add optional 'host' argument to -qmljsdebuggerSimjees Abraham2012-03-194-6/+18
| | | | | Change-Id: I5bb2e48e2ad2019b8a92f6f8842b88027fcd2d28 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebuggingTests: Separate out public and private testsAurindam Jana2012-03-194-3/+676
| | | | | | | | | Remove dependencies on quick-private from all possible debugging auto tests and list them under public tests. Change-Id: I688b5b36fdf3d6fbcb6cef2a975ecd1bf679af2b Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Print informational messages via qDebugKai Koehne2012-03-142-2/+2
| | | | | | | This allows users to use QT_FATAL_WARNINGS. Change-Id: I114825764c841030418c956d23575159157dfd69 Reviewed-by: Roberto Raggi <roberto.raggi@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-073-6/+83
| | | | | | | | | | | 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>
* QML Debugger: Change prefix of warningsKai Koehne2012-03-072-6/+6
| | | | | | | | | Since we've been changing from QtDeclarativeDebugServer to QQmlDebugServer anyway, we might as well change it to the more readable "QML Debugger:" prefix. Change-Id: I852577233d7cdb1f57adc43ec1b85a14d212574d Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Don't link against QtWidgets and QtOpenGLLars Knoll2012-03-071-1/+1
| | | | | Change-Id: I3a949dff488d200762b18a0c0a16103f8908052e Reviewed-by: Kent Hansen <kent.hansen@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-0511-8/+19
|\ | | | | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
| * Use new plugin system in QtDeclarative.Friedemann Kleint2012-02-2311-8/+19
| | | | | | | | | | | | | | | | - 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-2433-117/+117
|/ | | | | | | | | | | | | 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 QtQuick1 elements from qtdeclarativeMatthew Vogt2012-02-0336-4610/+0
| | | | | | | | QtQuick1 is now contained in a separate repository. Task-number: QTBUG-23737 Change-Id: I09eae67af5693a22b896b916f816f73ccc3a89b1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove QAccessible::FocusChild, add focusChild()Jan-Arve Saether2012-02-022-23/+18
| | | | | Change-Id: Idc96d91ec31630b4240fe473ed3b4bf0a4753618 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3060-60/+60
| | | | | | | | | | 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-2360-60/+60
| | | | | | | | 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>
* Remove all reimplementations of relationTo() returning Unrelated.Jan-Arve Saether2012-01-162-6/+0
| | | | | | | | QAccessibleInterface::relationTo() already return QAccessible::Unrelated by default. No need to duplicate that code. Change-Id: Ie64e798a1935619af32ae41d7e14ae26bd9bf523 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Accessibility: indexOfChild is 0-based.Frederik Gladhorn2012-01-123-6/+3
| | | | | | | Also test for it to work. Change-Id: I3be913984e2dddce241b538c7801f3376acdd1fa Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Remove unnecessary reimplementation of invokeMethod()Jan-Arve Saether2012-01-122-7/+0
| | | | | | | | invokeMethod() is not pure virtual, and the implementation inherited from the baseclass is the same Change-Id: I073ab3a0dc3477f66b82535c1898430f601acee8 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Make QAccessibleQuickView::childAt() work properly with overlapping itemsJan-Arve Saether2012-01-124-28/+77
| | | | | | | | | | | | | | | | | | | | The previous code did not consider items that were overlapped due to having different z coordinates. The approach used is now the same as found in QQuickCanvas::mousePressEvent(). Strictly speaking, this is a violation of childAt (since it will disregard the implementation of childAt of all the descendants along the path down to the item actually returned.) However, I don't see any good reason for that the implementation for childAt() would be different than how mousePressEvent behaves. It should also perform better than any other solution I managed to think of. Change-Id: I2d3fa2282437c7b5533c6149c62fc456ccf2ccfa Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Accessibility: Checked state for check boxes and radio buttons.Frederik Gladhorn2012-01-107-25/+39
| | | | | | | Also adapt to new api in qtbase - state is now a bit field. Change-Id: Ia4266f3d5094a6c32e0ace3499910b57c3e71c25 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Make accessibility interface functions const.Frederik Gladhorn2012-01-062-6/+6
| | | | | | | Follow the change in qtbase. Change-Id: I43427369235585e9fb628d1a8f62891d44107cc9 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Reuse the OObject* in QAccessibleObjectJan-Arve Saether2012-01-064-31/+29
| | | | | | | Saves a few bytes per interface.... Change-Id: I2d66a563d28b94e08179bc43d4465509e0cb88f2 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Create a value interface for qml accessibles.Frederik Gladhorn2012-01-063-4/+61
| | | | | Change-Id: I472052c6d61a3a32033544ebb5afc5b11fb093e2 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Hide more children of accessible objects.Frederik Gladhorn2012-01-061-1/+8
| | | | | Change-Id: Ie8874b3b5a354f7f0586efb601b217e4d296af5c Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Remove all references to QAccessible:: {Child|Ancestor|Sibling}Jan-Arve Saether2012-01-055-108/+9
| | | | | | | | | | | These are deprecated in favor of QAccessibleInterface::child() and QAccessibleInterface::parent() QAccessible::Sibling can be done with a combination of those two. This is handled by the bridge Change-Id: Ie63d74314189d9e0f24f1152a2f0030d9e865b75 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0560-60/+60
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Do not leak interfaces during hit testing (QDA::childAt())Jan-Arve Saether2012-01-031-0/+1
| | | | | Change-Id: Iebbc1cbbdce57bff6423fa417eac8dbdfe35e510 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Add accessibility to qmlFrederik Gladhorn2012-01-0217-0/+1662
| | | | | | | | | | | | | | | This consists of two parts: An attached property for QML items and a plugin for the accessibility framework. The attached property simply takes care of some properties (name, role) that are needed in order to expose semantics of the application to assistive tools. The plugin exposes the hierarchy of QML items to the accessibility framework. Change-Id: I32f5603d0d9549b01b3645b205b710b9801762f7 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Debugger: Allow transmissions of network packets in one goKai Koehne2011-12-212-6/+7
| | | | | | | | | We did call a flush() after every single packet, which was slowing down things especially for the QDeclarativeDebugTrace service. Change-Id: Idab074941a22364e154502eb12afa43b4dd33c22 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Get rid of SG* prefix in qtquick2 pluginKai Koehne2011-12-208-76/+76
| | | | | Change-Id: Ib8a40d633c169652258480748cfc162593ed9f6c Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix compilation due to header changesSergio Ahumada2011-12-171-1/+1
| | | | | | | | | | - Fix QtGui/QApplication => QtWidgets/QApplication - Fix QtGui/QStylePlugin => QtWidgets/QStylePlugin - Fix QtWidgets/QStringListModel => QtCore/QStringListModel - Fix QtWidgets/qstringlistmodel.h => QtCore/qstringlistmodel.h Change-Id: I8df28f032f039107b900c81be27d2d6e5e69e06e Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Say hello to QtQuick moduleKent Hansen2011-12-025-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the QtQuick 2 types and C++ API (including SceneGraph) to a new module (AKA library), QtQuick. 99% of this change is moving files from src/declarative to src/quick, and from tests/auto/declarative to tests/auto/qtquick2. The loading of QtQuick 2 ("import QtQuick 2.0") is now delegated to a plugin, src/imports/qtquick2, just like it's done for QtQuick 1. All tools, examples, and tests that use QtQuick C++ API have gotten "QT += quick" or "QT += quick-private" added to their .pro file. A few additional internal QtDeclarative classes had to be exported (via Q_DECLARATIVE_PRIVATE_EXPORT) since they're needed by the QtQuick 2 implementation. The old header locations (e.g. QtDeclarative/qquickitem.h) will still be supported for some time, but will produce compile-time warnings. (To avoid the QtQuick implementation using the compatibility headers (since QtDeclarative's includepath comes first), a few include statements were modified, e.g. from "#include <qsgnode.h>" to "#include <QtQuick/qsgnode.h>".) There's a change in qtbase that automatically adds QtQuick to the module list if QtDeclarative is used. Together with the compatibility headers, this should help reduce the migration pain for existing projects. In theory, simply getting an existing QtDeclarative-based project to compile and link shouldn't require any changes for now -- but porting to the new scheme is of course recommended, and will eventually become mandatory. Task-number: QTBUG-22889 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Change-Id: Ia52be9373172ba2f37e7623231ecb060316c96a7 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Debugger: Remove widgets dependency for qtquick2 inspectorKai Koehne2011-11-022-53/+1
| | | | | Change-Id: I596a49375afc1e148fec1aabe0a7d47a81e7442a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger: Fix compile of qmldbg_qtquick1 plugin on WindowsKai Koehne2011-11-021-1/+1
| | | | | Change-Id: I5e1991365aa633319ac828898d35d239089816c0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger: Split inspector plugin into a qtquick1 and a qtquick2 pluginKai Koehne2011-11-0145-101/+358
| | | | | | | | This allows the inspector to be used also when e.g. qtquick1 and widgets libraries are not available. Change-Id: Id8510ea2a1a9c2a776d67e6d7732a4e40363d5a3 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Remove Q_WS_*, symbian and maemo code in QtDeclarativeDamian Jansen2011-10-265-11/+2
| | | | | Change-Id: If64daf80f9d19973e0bc2d864b003a66be5ca61d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* qmldbg_inspector: Fix compilation on Windows.Friedemann Kleint2011-10-252-1/+2
| | | | | Change-Id: I2de713e0bb250e07cd09be80aeea6fee86aabcf1 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Make show app on top workKai Koehne2011-10-241-1/+3
| | | | | Change-Id: I21328e57e5130fb6d375a982cb4922b3facfad21 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Inspector code cleanupKai Koehne2011-10-243-42/+25
| | | | | Change-Id: Ibf647e2885466d521406fca15cc0cf85c5412f52 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Move inspector parts dealing with QtQuick1 into separate directoryKai Koehne2011-10-2427-40/+40
| | | | | Change-Id: Ifd024e214406dfc58d4389ce4397efcb4626b860 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Rename Qt Quick-specific classes to QQuick*Kent Hansen2011-10-218-83/+83
| | | | | | | | | | | | | | | | | | | | | | The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>