Christiaan Janssen
90a812a8a8
QmlLivePreview: fix crash when inserting node with no parents
...
Change-Id: Ib781f64aed11aafc106dc15b40689181fefd5dd3
Reviewed-on: http://codereview.qt.nokia.com/3171
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-08-18 11:52:30 +02:00
Christian Kamm
a6ae570c31
QmlJS: Move 'file not found' error message from Bind to Link.
...
Change-Id: I701fc179f377581b87e31630eaa4231688152f5e
Reviewed-on: http://codereview.qt.nokia.com/2813
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-08-10 09:23:28 +02:00
Christian Kamm
ffee7c0b49
QmlJS: Clean up ScopeAstPath visitor.
...
Change-Id: If983e9c9bee2d0396d7cc00973ee3885a3736d8a
Reviewed-on: http://codereview.qt.nokia.com/2767
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-09 10:47:31 +02:00
Christian Kamm
197c60e928
QmlJS: Add XMLHttpRequest, DB API and JSON completion.
...
Change-Id: I30773e8879086c1f85d331fabf9380e217b32dd7
Reviewed-on: http://codereview.qt.nokia.com/2745
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-09 08:36:35 +02:00
Christian Kamm
0e54183d4d
QmlJS: Remove Interpreter namespace.
...
The distinction between QmlJS and QmlJS::Interpreter has always been
weak and the extra namespace just added an unnecessary complication.
Change-Id: I4db8ef4bd91b5f6bf610a9d23fdbf55bd60250fc
Reviewed-on: http://codereview.qt.nokia.com/2743
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-08 13:21:28 +02:00
Christian Kamm
ff092f79b3
QmlJS: Remove LookupContext.
...
Use Context or ScopeChain instead.
Change-Id: I2489477eac08774ba41710ee81876aab11b5af24
Reviewed-on: http://codereview.qt.nokia.com/1699
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-08 12:28:55 +02:00
Christian Kamm
9dc9674c6b
QmlJS: Share Context.
...
Previously Context was not entirely thread safe and had to be
copied locally. Now it is thread safe and its lifetime
managed by QSharedPointer.
The non-safe parts were moved into ScopeChain in a previous commit.
Change-Id: I851a93de85cbd6391dbea0fe33b011e2e093addb
Reviewed-on: http://codereview.qt.nokia.com/1695
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-08 12:05:19 +02:00
Christian Kamm
f87dc61986
QmlJS: Split Context and ScopeChain.
...
Context is created by Link and has information about imports
for all Documents in a Snapshot.
ScopeChain represents how lookup is done at a specific place in
a Document.
Change-Id: I874102d57bbaf1a497fa3f27633bed6ee75dcf10
Reviewed-on: http://codereview.qt.nokia.com/1694
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-08 12:05:03 +02:00
Christian Kamm
ed1321a4f9
QmlJS: Resolve references while evaluating expressions.
...
Task-number: QTCREATORBUG-5752
Change-Id: Ibcdaac039a5e862d7a8f03f58c8bf017b544e436
Reviewed-on: http://codereview.qt.nokia.com/2736
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-08 12:04:49 +02:00
Christian Kamm
eda93bde42
QmlJS: Fix type lookup issue.
...
0c0ffab1bb
accidentally always returned
null if the type was not an enum.
Change-Id: Ie16d96e59cefa50c345cddb4a053fd8b60ba3cd6
Reviewed-on: http://codereview.qt.nokia.com/1693
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-07-15 11:22:20 +02:00
Fawzi Mohamed
0c0ffab1bb
avoid allocating QmlEnumValues each time
...
Change-Id: I61f39f5bafcb2c84e91f5bca4b52010a08ed9f37
Reviewed-on: http://codereview.qt.nokia.com/1592
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-07-13 14:59:52 +02:00
Christian Kamm
f3a45d7b55
QmlJS: Fix basic code model test.
...
Change-Id: If62153e9db56e65e10d008d49f0945d3ea77c4f4
Reviewed-on: http://codereview.qt.nokia.com/1502
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
Reviewed-by: Bill King <bill.king@nokia.com >
2011-07-12 11:25:31 +02:00
Christian Kamm
4285b48455
QmlJS: Dump builtins per Qt version.
...
Change-Id: I7b5179c4b33c24e83baf0536d158dd48d277637f
Reviewed-on: http://codereview.qt.nokia.com/1305
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-11 11:28:38 +02:00
Oswald Buddenhagen
1f3896e8af
Merge remote-tracking branch 'origin/2.3'
...
Conflicts:
share/qtcreator/dumper/bridge.py
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/remotelinux/remotelinuxapplicationrunner.cpp
Change-Id: I444f797723d5879ea08c5c0e1f31158d271d4f41
2011-07-07 12:26:59 +02:00
Christian Kamm
59206106d3
QmlJS: Don't need to store imports per document in LinkPrivate.
...
Change-Id: I4bb9bcbc7a8e988760ca1b3463474b269e3802af
Reviewed-on: http://codereview.qt.nokia.com/1156
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 13:45:08 +02:00
Christian Kamm
4cc8e4d4e3
QmlJS: Fix error message when too new qmltypes files are read.
...
Change-Id: I5c499dd1307ee0e1f474278873706151d562d380
Reviewed-on: http://codereview.qt.nokia.com/1030
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 13:44:55 +02:00
Christian Kamm
eec591ff1c
QmlJS: Make 'length' property available on all FunctionValues.
...
Change-Id: I62bb8f41177521db1f3213d6bd804d8e4852560d
Reviewed-on: http://codereview.qt.nokia.com/1044
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 11:52:38 +02:00
Christian Kamm
d72ee7c7da
QmlJS: Remove deprecated enum functions in QmlObjectValue.
...
Change-Id: I30c1636f4946f465e5924493e561310f506df3d7
Reviewed-on: http://codereview.qt.nokia.com/1043
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 11:52:28 +02:00
Christian Kamm
36ed6bce1d
QmlJS: Move Context to its own file.
...
Change-Id: I91331b7039e27e2f57cc19b985c8ed86c955ec9e
Reviewed-on: http://codereview.qt.nokia.com/1042
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 11:52:20 +02:00
Christian Kamm
9ea0380a4d
QmlJS: Enforce Context always being linked.
...
The default way of creating a Context is through Link.
Change-Id: Ia81f7ce90ba2b33d02eed432a61be836d404bedd
Reviewed-on: http://codereview.qt.nokia.com/1041
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 11:52:09 +02:00
Christian Kamm
f691d3824a
QmlJS: Remove unused methods from Context
...
Change-Id: I1e4a013ee11f9747d6936c15bf81e971ca4e4f23
Reviewed-on: http://codereview.qt.nokia.com/1040
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 08:46:39 +02:00
Christian Kamm
8b778b266b
QmlJS: Rename Interpreter::Engine -> ValueOwner
...
Also move to a separate file.
Change-Id: I05910e8cf04a533b5d09a1c16e612e3b99b1d606
Reviewed-on: http://codereview.qt.nokia.com/1039
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 08:44:16 +02:00
Christian Kamm
f229def962
Fix UiPublicMember::lastSourceLocation.
...
Mirrors http://codereview.qt.nokia.com/#change,755
Change-Id: I7d1222bda67344456710ada52af33d17688627ca
Reviewed-on: http://codereview.qt.nokia.com/757
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-06-27 10:45:51 +02:00
Christian Kamm
55b11db1f7
QmlJS: Fix error location for prototype errors.
...
Change-Id: Iaeb96ff67cfc92bcddeb1b7075b7fdcbaed317c0
Reviewed-on: http://codereview.qt.nokia.com/691
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-06-24 11:32:48 +02:00
Christian Kamm
4f05d53ef5
QmlJS: Add 'reset code model' action.
...
Having to restart Creator should be a thing of the past.
Task-number: QTCREATORBUG-4813
Change-Id: Ide242ee299b5d34aecba4823032e27741dde4a86
Reviewed-on: http://codereview.qt.nokia.com/668
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-06-23 22:22:03 +02:00
Christian Kamm
4bf5f4bd94
QmlJS: Respect the REVISION property for methods and properties.
...
Task-number: QTCREATORBUG-3907
Change-Id: Ic2c1f8cafe381e5216ae7ad73502ca0fae20dda0
Reviewed-on: http://codereview.qt.nokia.com/656
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-06-23 13:39:08 +02:00
Christian Kamm
33a130e222
QmlJS: Fix completion inside grouped propery bindings.
...
Task-number: QTCREATORBUG-3541
Change-Id: Ida8e59b65836c8515fbfbd2a9e4737d9ae04e76c
Reviewed-on: http://codereview.qt.nokia.com/639
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-06-23 11:47:07 +02:00
Christian Kamm
0f254adcc3
QmlJS: Fix completion of 'anchors.'.
...
The hasChildInPackage function was broken, so we completed 'anchors:'
instead.
Task-number: QTCREATORBUG-5180
Change-Id: I0e0d68aec3cf4e5bea991e39169beecf541ce477
Reviewed-on: http://codereview.qt.nokia.com/643
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-06-23 11:02:35 +02:00
Christian Kamm
756e00b15f
QmlJS: Always generate a onXyzChanged slot.
...
Even if the NOTIFY signal listed for the property has a different name.
Task-number: QTCREATORBUG-3614
Change-Id: I748cddab89732acd6a56b243610be52873225064
Reviewed-on: http://codereview.qt.nokia.com/637
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-06-23 11:02:18 +02:00
Christian Kamm
fc88340c6c
QmlJS: Setup QmlEnumValues even if enum is non-local.
...
Change-Id: Ib7a3621c14b6dfbdf36c75abac282c08f47e55ca
Reviewed-on: http://codereview.qt.nokia.com/559
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-06-22 12:07:06 +02:00
Christian Kamm
d1a83a3e6c
QmlJS: Add qsTr and friends to code model.
...
Change-Id: I9a16549da341500fc273ebbc480d7aa901b17e41
Reviewed-on: http://codereview.qt.nokia.com/548
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-06-21 14:31:57 +02:00
Christiaan Janssen
5a1f5c6fc8
QmlLivePreview: correctly formating file URL
...
Change-Id: I7c77d7854dac8e28cd5bcdeb4e6a8687fdb8606e
Reviewed-on: http://codereview.qt.nokia.com/361
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-06-08 13:45:38 +02:00
Fawzi Mohamed
fe564852ad
Qmljs: added scope for blocks in UiScriptBindings and UiPublicMember
...
correctly insert the scope for code blocks in UiScriptBindings and
UiPublicMember, and improve find usages for types (correctly detecting
variables in the same scope)
Change-Id: Iaaf1a59f041f3831fbe04243b220fb85fde76479
Reviewed-on: http://codereview.qt.nokia.com/335
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-06-07 13:04:21 +02:00
Tobias Hunger
148e1fdf67
QMLJS: Remove dead code
...
Change-Id: Ieb98a43ad1f5169b8da4c5d662a8f73605e2654f
Reviewed-on: http://codereview.qt.nokia.com/352
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-06-07 10:35:49 +02:00
Fawzi Mohamed
752ea43111
Qmljs: find usages for types and packages
...
detects and finds usages of types and packages in qml and javascript
Change-Id: Id13f48e435258ff10ab3e6f49049f7bb602a900f
Reviewed-on: http://codereview.qt.nokia.com/277
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-06-06 14:08:15 +02:00
Christian Kamm
b729d4b973
QmlJS: Fix uses of Scanner::state().
...
Change-Id: I5195fc43e8a6653bf52c0eaa6cddb8dfd25b6217
Reviewed-on: http://codereview.qt.nokia.com/319
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com >
2011-06-03 08:53:24 +02:00
Fawzi Mohamed
96129accb5
Qml Editor: accept imports with absolute paths
...
qmljs code model now correctly handles absolute paths in imports
Change-Id: I6a4bcfbe9a8d9ab70b5fcac1df36ba9802ff5efe
Reviewed-on: http://codereview.qt.nokia.com/256
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-05-31 10:54:36 +02:00
Christian Kamm
83072da8b0
QmlJS: Fix potential linking problem.
...
Don't use plugin from libs/qmljs.
Change-Id: Ia345c567cd1f244ab2191017810ef3eeb91fe0e4
Reviewed-on: http://codereview.qt.nokia.com/213
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
2011-05-30 15:19:06 +02:00
Christian Kamm
060ca8d1cb
Prefer C++-style cast.
...
Change-Id: Id5e300c2e28bc704cbd1ae0d6022be4db8535429
Reviewed-on: http://codereview.qt.nokia.com/203
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: hjk <qthjk@ovi.com >
2011-05-30 14:51:45 +02:00
Christian Kamm
88dc2d71fb
QmlJS: Import 'as' has precedence over types imported without as.
...
Change-Id: Iece286c9d1725d2bb1e3eff57cd73af97dd8c748
Reviewed-on: http://codereview.qt.nokia.com/181
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-05-30 11:38:51 +02:00
Christian Kamm
f0a4e7e225
QmlJS: Output qmltypes parse warnings to General messages pane.
...
Change-Id: I8ca100ef141082c7606bb98f8a2f81502b14e1af
Reviewed-on: http://codereview.qt.nokia.com/204
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-05-30 11:32:23 +02:00
Christian Kamm
715cee76a9
qmldump: Bump to QtQuick.tooling 1.1, make parser more permissive.
...
The qmltypes file reader now ignores unknown bindings and components
to allow for better forward-compatibility.
Change-Id: I2e31c17344dc8fdcd301a62c8d08e98c29ef53ee
Reviewed-on: http://codereview.qt.nokia.com/202
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-05-30 11:26:54 +02:00
Christian Kamm
cf7663b2de
QmlJS: Read the 'revision' property generated by qmldump.
...
Change-Id: Ia31b1845b1e1e5aabc347dc115e580c72e36f4e3
Reviewed-on: http://codereview.qt.nokia.com/200
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-30 09:31:37 +02:00
Christian Kamm
8742026380
QmlJS: Allow for QML modules with version subdirectories.
...
That means
import Foo 2.1
can resolve to
/path/Foo.2.1 or
/path/Foo.2 or
/path/Foo
Task-number: QTCREATORBUG-4607
Change-Id: Ie1efc5be2ca2ed3ccc130e8a662f94aed11bec1a
Reviewed-on: http://codereview.qt.nokia.com/194
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-30 08:25:19 +02:00
Christian Kamm
96cde1e9de
QmlJS: Fix import cache usage with 'as' imports.
...
Change-Id: I6c057e494f87df927adc7b83c6caf1ecc729ac65
Reviewed-on: http://codereview.qt.nokia.com/176
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-05-27 11:49:01 +02:00
Christian Kamm
a7f4e5fab5
QmlJS: Separate imported types and imported JS scopes.
...
Task-number: QTCREATORBUG-4981
Change-Id: I06d3e428ca4928296a3d5977aeff29fc3217c37c
Reviewed-on: http://codereview.qt.nokia.com/175
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-05-27 11:48:53 +02:00
Christian Kamm
8a8b371ecc
QmlJS: Initialize error state in PrototypeIterator.
...
Change-Id: I231b847607d0558080d0dc0b6392bae5b833d65a
Reviewed-on: http://codereview.qt.nokia.com/107
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-05-25 11:51:05 +02:00
Christiaan Janssen
3cf5379380
QmlLivePreview: removing and inserting animations and transitions
...
Change-Id: Ic776f63f5d7925ac7dfd99be53c10b9af4cb9545
Reviewed-on: http://codereview.qt.nokia.com/75
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-05-24 13:03:43 +02:00
Christian Kamm
779fafcbfe
Make C++ code style configurable.
...
Change-Id: Iaf08edb2361146e6b5e1cbafdb716a23c938875b
Done-with: Jarek Kobus
Task-number: QTCREATORBUG-2670
Task-number: QTCREATORBUG-4310
Task-number: QTCREATORBUG-2763
Task-number: QTCREATORBUG-3623
Task-number: QTCREATORBUG-567
Reviewed-on: http://codereview.qt.nokia.com/74
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-24 12:45:07 +02:00
Christian Kamm
d67b7d17dc
QmlJS: Refactor ObjectValue members.
...
* property -> lookupMember
* setProperty -> setMember
* removeProperty -> removeMember
Change-Id: I638479ee2b90b684283e714630bdcab237f6b3f2
Done-with: Fawzi Mohamed
Reviewed-on: http://codereview.qt.nokia.com/77
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-05-24 11:55:03 +02:00