summaryrefslogtreecommitdiff
path: root/src/libs/qmljs
Commit message (Collapse)AuthorAgeFilesLines
* It's 2011 now.con2011-01-1261-63/+63
|
* License headers.con2010-12-1740-280/+440
|
* Merge remote branch 'origin/2.1.0' into 2.1con2010-10-281-1/+2
|\ | | | | | | | | Conflicts: share/qtcreator/translations/qtcreator_pl.ts
| * QmlJS: Fix completion for 'anchors.' and similar properties.Christian Kamm2010-10-271-1/+2
| | | | | | | | | | | | | | The detection of whether a type or one of its children is exported was broken when we fixed the type information for the QtQuick module. Reviewed-by: Erik Verbruggen
| * Debugger/JS Code model: Set environment for QML tools correctly.Friedemann Kleint2010-10-261-0/+3
| | | | | | | | | | | | | | | | | | | | Set complete build environment (MinGW). Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Task-number: QTCREATORBUG-2883 (cherry picked from commit f1fb0bddb11d69355784953a6cc0364f9fa25d3e)
* | Debugger/JS Code model: Set environment for QML tools correctly.Friedemann Kleint2010-10-261-0/+3
| | | | | | | | | | | | | | | | | | Set complete build environment (MinGW). Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Task-number: QTCREATORBUG-2883
* | Updated the QML/JS front-end.Roberto Raggi2010-10-262-4/+4
|/
* QuickToolBar: reduce usage of lookup contextThomas Hartmann2010-10-211-2/+2
| | | | | | | | | | Getting the lookup context is expensive. So it is now done only on user interaction. Reviewed-by: Roberto Raggi
* QmlJS: Fix a performance problem.Christian Kamm2010-10-201-0/+3
| | | | | | | | | | | | In order to determine all components that instantiate a given component, Bind::usesQmlPrototype was called on each document in the snapshot. That, in turn, had to iterate over all object definitions inside the document, resolving their prototype references. All in all, it lead to a very large amount of fairly expensive lookups that were slowing down Creator considerably. Reviewed-by: Erik Verbruggen
* QmlOutline: Fix reordering of array elementsKai Koehne2010-10-201-3/+3
| | | | | | | | Make sure that a comma is added when inserting array elements into the array. Task-number: QTCREATORBUG-2796 Reviewed-by: Erik Verbruggen
* QmlJS: Fix false-positive errors reported for ListElement, Connections.Christian Kamm2010-10-201-1/+2
| | | | | Task-number: QTCREATORBUG-2802 Reviewed-by: Roberto Raggi
* Updated the QML/JS front-end.Roberto Raggi2010-10-199-220/+197
| | | | Reviewed-by: Christian Kamm
* QmlJS: Fix completion for enums on the global Qt object.Christian Kamm2010-10-191-0/+5
| | | | Reviewed-by: Erik Verbruggen
* QmlJS: Force a semantic check when library information changes.Christian Kamm2010-10-151-0/+1
| | | | | Task-number: QTCREATORBUG-2640 Reviewed-by: Roberto Raggi
* QmlJS: Fix several crashes when UiQualifiedId::name is 0.Christian Kamm2010-10-143-3/+6
| | | | | Task-number: QTCREATORBUG-2737 Reviewed-by: Kai Koehne
* QmlJS: Fix plugin dumpers running all the time if dump fails.Christian Kamm2010-10-142-0/+8
| | | | | Task-number: QTCREATORBUG-2733 Reviewed-by: Kai Koehne
* QmlJSObserver: Fix crash when adding an element to some .qml filesKai Koehne2010-10-081-1/+2
| | | | | | | | | | Make sure that the 'artifical' URL of the item created actually is absolute (starts with a file:///). Otherwise an Assert will be hit when the imports include e.g. a .js file, and the Engine tries to load it. Task-number: QTCREATORBUG-2644 Reviewed-by: Olivier Goffart
* QmlJsDelta: Guard qDebug outputKai Koehne2010-10-081-3/+10
|
* QmlJS: Always register C++ based components with their C++ name.Christian Kamm2010-10-081-3/+1
| | | | | | | | This is the name that other components will refer to it by. For instance, MouseArea has a 'drag' property with type 'QDeclarativeDrag', since QDeclarativeDrag was only exported as Qt.Drag and QtQuick.Drag, the type lookup didn't manage to resolve the name. (cherry picked from commit b53ba61248ac398c98cf5849d050f99de92ff6a9)
* QmlJS: Fix an instance of relying on the Qt package name.Christian Kamm2010-10-011-1/+2
| | | | Reviewed-by: Thomas Hartmann
* QmlJS: Prepare qmldump for multiply exported C++ objects.Christian Kamm2010-10-012-70/+137
| | | | | | | In the future, builtin objects are going to be exported in Qt 4.7 and QtQuick 1.0. Reviewed-by: Roberto Raggi
* QmlJS indenter: Fix incorrect indent after break/continue.Christian Kamm2010-09-302-1/+3
| | | | | | | Make sure to push a transitory state before leave(true) so it only finishes the statement - and not the surrounding statement! Reviewed-by: trustme
* QML Observer: Build together on runtime with debugging toolsLasse Holmstedt2010-09-291-0/+1
| | | | | | | | Moved qmljsdebugger to a dir under qml/, made qmlobserver compile without creator dependencies and made it compile with debugging helpers. Reviewed-by: hjk
* QmlJS: Fix initializer of property declaration not being visited in BindChristian Kamm2010-09-281-1/+1
| | | | | | | | This lead to the semantic checker reporting incorrect errors in these initializers. Task-number: QTCREATORBUG-2340 Reviewed-by: Roberto Raggi
* QmlOutline: Show functions in outlineKai Koehne2010-09-284-0/+9
| | | | | Reviewed-by: Christiaan Janssen (cherry picked from commit e871b7e3302aaa27a723c0cfc1635e47eba5c09a)
* Revert "Remove the QmlJSEditor dependency from Qt4ProjectManager."dt2010-09-272-5/+2
| | | | This reverts commit f8c50013822bcf4119b88dada985c6d58fe27999.
* QmlJS indenter: Fix break/continue/throw in if statement without braces.Christian Kamm2010-09-272-0/+9
| | | | Reviewed-by: Roberto Raggi
* QmlJS indenter: Fix problem with object literals.Christian Kamm2010-09-272-1/+11
| | | | Reviewed-by: Roberto Raggi
* QmlJS: Fix QmlComponentChain not being exported.Christian Kamm2010-09-241-1/+1
| | | | | | It's meant to be. Reviewed-by: Daniel Molkentin
* QmlJS: Add initial 'Find Usages' support.Christian Kamm2010-09-249-102/+124
|
* QmlJS: Cache some commonly used QML specific objects.Christian Kamm2010-09-242-42/+85
|
* QmlJS: Synchronize Engine::registerValue.Christian Kamm2010-09-242-0/+4
| | | | | | When multiple threads share the Bind instance in a Document and do lookup on the objects contained inside, that may trigger a new object creation in some situations - which needs to be synchronized.
* QmlJS: Fix segfault during import resolution.Christian Kamm2010-09-241-1/+2
|
* compilation fix with namespaceshjk2010-09-232-1/+9
|
* Remove the QmlJSEditor dependency from Qt4ProjectManager.Christian Kamm2010-09-232-2/+5
| | | | | | | The Qt4ProjectManager now uses metacalls to inform the QmlJSModelManager about the project data. Done-with: hjk
* QmlObserver: showing a warning when changes cannot be synchronizedChristiaan Janssen2010-09-222-4/+17
| | | | Reviewed by: Thomas Hartmann
* QmlJS: Speed up Link significantly, provide more info on imports.Christian Kamm2010-09-169-196/+417
| | | | | | | | | | | | Link now caches imports. That means importing the same library (say, Qt) from more than one file no longer creates an importing namespace for each one. Instead, a single one is created for the instance of Link. To make this work, the type environment in ScopeChain has been given its own type: Interpreter::TypeEnvironment. That has the added benefit of being able to carry meta-information about imports. You can use TypeEnvironment::importInfo(qmlComponentName) to get information about the import node that caused the import of the component.
* Qml: Make import classification in Bind less verbose.Christian Kamm2010-09-162-25/+21
|
* QmlJS: Add initial documentation for the base classes of the code model.Christian Kamm2010-09-153-0/+70
|
* Concate strings instead of using the QDir API to speed up the linking phase.Roberto Raggi2010-09-081-5/+4
| | | | Reviewed-by: Christian Kamm
* QmlJS: Improve performance by avoiding two links in SemanticHighlighter.Christian Kamm2010-08-312-6/+3
| | | | Reviewed-by: Roberto Raggi
* QmlJS: Fix performance problem in Snapshot.Christian Kamm2010-08-312-4/+9
| | | | | | | Don't use QMultiHash::values(key), it rebuilds the values list from scratch for each lookup. Reviewed-by: Roberto Raggi
* QmlJS: Make ScopeChain more const-correct.Christian Kamm2010-08-303-12/+13
| | | | | We don't want people modifying the shared component chain on a const Context *.
* QmlJS: Add missing null checks before using scopeChain().qmlTypes.Christian Kamm2010-08-301-1/+2
|
* qmljsdelta: Fix updating property on UiObjectBindingOlivier Goffart2010-08-272-12/+12
|
* Fix krazy issues: Use explicit constructorsTobias Hunger2010-08-273-4/+4
| | | | | * Fix all warnings about non-explicit constructors except for those in 3rdparty code.
* QmlJS: Fix crash when opening JS files.Christian Kamm2010-08-273-11/+15
| | | | | | | | | | | | Now that Contexts are cached, it needs to be copyable. However, the ScopeChain has a QmlComponentChain member that owns resources and didn't have a correct copy constructor or copy assignment operator. I've made QmlComponentChain non-copyable and store a shared pointer to an instance instead, as it will generally not change for a given context. Reviewed-by: Lasse Holmstedt
* QmlInspector: Added reparenting of items in the Qml Live Preview. Reviewed ↵Christiaan Janssen2010-08-262-1/+14
| | | | by: Lasse Holmstedt
* QmlJS: Fix possible segfaults with null documents.Christian Kamm2010-08-261-0/+4
|
* QmlJS: Refactor LookupContext creation for speed.Christian Kamm2010-08-267-36/+69
| | | | | | | | * If possible, create LookupContexts through SemanticInfo; it caches the linked Context and will be faster. * Contexts now own their Engine. Reviewed-by: Lasse Holmstedt