Erik Verbruggen
9539a8dcb0
Changed error to warning when using a string literal for an ID.
2010-03-04 16:41:08 +01:00
Christian Kamm
fe13a9faec
Default initialize FakeMetaMethod correctly.
...
Reviewed-by: Erik Verbruggen
2010-03-03 15:33:36 +01:00
Christian Kamm
6a49483cff
Add read signals to the FakeMetaObject.
...
Reviewed-by: Erik Verbruggen
2010-03-03 15:33:36 +01:00
Roberto Raggi
26e4672bc6
Updated the QML/JS front-end.
2010-03-03 11:39:21 +01:00
Christian Kamm
08b9323f0c
Fix completion and checking for Script elements. Update Qml type xml.
...
* The "Script" type is now implicitly available without imports.
* No errors for bindings inside a Connections element.
Reviewed-by: Roberto Raggi
2010-03-03 11:38:17 +01:00
ck
7058367556
Silence silly gcc warning.
...
Reviewed-by: Erik Verbruggen
2010-03-02 11:00:14 +01:00
Erik Verbruggen
3b2c2c2253
Changed color name checks to use new QColor::isValidColor method.
2010-03-02 10:37:04 +01:00
Erik Verbruggen
d7ac47da15
Changed field class names.
2010-03-01 14:34:29 +01:00
Lasse Holmstedt
532952b5a0
Compile fix and moved Design mode icon to coreplugin
2010-03-01 13:32:30 +01:00
Thomas Hartmann
a01ff0cc6e
compile fix
2010-03-01 13:23:05 +01:00
Erik Verbruggen
13d7612f09
Removed private header dependencies and introduced loading QML types from XML file.
2010-03-01 13:13:02 +01:00
Kai Koehne
318fee6f5c
QmlJS: Fix compilation with latest changes of QDeclarative
...
All files have been renamed from Qml to QDeclarative
2010-02-26 14:43:39 +01:00
Erik Verbruggen
912a1b95a9
Fixed crash when putting a second root item into a QML file.
2010-02-25 12:57:17 +01:00
Erik Verbruggen
8fbf0dd08f
Fixed possible crash when error recovery yielded a partially correct AST.
2010-02-24 17:14:51 +01:00
Christian Kamm
f0674aa7e9
Add check for anchor line, changed value assignment checks into visitor.
...
Done-with: Erik Verbruggen
2010-02-23 17:03:05 +01:00
Christian Kamm
feacbf8a2a
Check that the id property is a plain lowercase identifier.
2010-02-23 14:57:19 +01:00
Christian Kamm
0e2685332c
Add check for correct color string in Qml.
2010-02-23 14:57:19 +01:00
Christian Kamm
f717a7df30
Add Qml type checks for assigning literals to properties.
...
Done-with: Erik Verbruggen
2010-02-23 12:36:48 +01:00
Christian Kamm
b1522ba5c8
Fix semantic checks not being applied to the Qml root object.
...
By always setting the scope object, even if it is identical to the root
object.
Done-with: Erik Verbruggen
2010-02-23 12:36:48 +01:00
Christian Kamm
b8a73d1e18
Fix compile error with msvc.
2010-02-22 12:01:55 +01:00
Christian Kamm
fcb6c4984e
Fix a memory leak with the QmlJS scope chain.
2010-02-22 11:21:25 +01:00
Tobias Hunger
28e348ace6
Fix compile on windows
2010-02-22 11:06:05 +01:00
Christian Kamm
8d14f18ec0
Add an accessor to get the flat scope list from ScopeChain.
...
Done-with: Erik Verbruggen
2010-02-22 10:22:23 +01:00
Christian Kamm
e9039db984
Move the scope building logic into QmlJS::ScopeBuilder.
2010-02-22 10:22:23 +01:00
Christian Kamm
08cfc8f28c
Pass in the whole AST path for scope creation.
...
Just the declaring member isn't enough.
2010-02-22 10:22:23 +01:00
Christian Kamm
c289897351
Make QmlJS scope building more flexible.
...
Instead of only maintaining a flat list of scopes, actually store the
global, component chain, root object, scope object, function, id and js
scopes separately.
2010-02-22 10:22:23 +01:00
Erik Verbruggen
78b3145477
Semantic checking for easing curve names.
...
Done-with: Christian Kamm
2010-02-19 15:11:03 +01:00
Erik Verbruggen
b17fc90310
Made the warnings/errors translatable.
2010-02-19 15:11:03 +01:00
Erik Verbruggen
7ee1bc5242
Suppress 'unknown property' warning after finding an unknown type.
...
And made the warnings/errors translatable.
2010-02-19 15:11:03 +01:00
Christian Kamm
2440bfc5dc
Don't try to look up members of attached properties.
2010-02-18 15:01:26 +01:00
Christian Kamm
e8565890fb
Teach QmlJS editor about QVector2D and QVector3D.
...
Used, for instance, in Rotation.axis or Rotation.origin.
2010-02-18 14:54:40 +01:00
Christian Kamm
2ce1592a14
Error when binding to nonexistant member of property in Qml.
...
This now errors for:
anchors.undefinedAnchor: foo
x.undefinedAnchor
2010-02-18 14:24:24 +01:00
Christian Kamm
4d5e1a9a0c
Fix possible crash in QmlJS semantic checker.
2010-02-18 10:42:15 +01:00
Christian Kamm
499f7780e4
Fix possible crash in QmlJS semantic checker.
2010-02-18 10:39:18 +01:00
Christian Kamm
3035733415
Workaround for not erroring on anchors { ... } in Qml for now.
2010-02-17 09:29:13 +01:00
Christian Kamm
265118eb5e
Add the onNameChanged signals that Qml properties generate implicitly.
2010-02-17 09:17:29 +01:00
Christian Kamm
a0431f0563
Don't error for unknown property names inside ListElement for now.
2010-02-17 09:01:39 +01:00
Christian Kamm
4ab2272a89
Remove unused parameter.
2010-02-17 08:58:33 +01:00
Christian Kamm
669b9c4552
Add signals defined in Qml and their generated slots to the code model.
2010-02-17 08:45:39 +01:00
ck
69e141c32f
QML stuff: Fix compilation for namespaced Qt.
2010-02-16 15:14:49 +01:00
Christian Kamm
45efd5b5b1
Don't show 'invalid property name' errors if we can't resolve the type.
...
The idea is that it may be a plugin-provided type. We don't want user
code to be riddled with error markers in that case.
Reviewed-by: Roberto Raggi
2010-02-16 13:30:40 +01:00
Christian Kamm
e6d9d9e387
Fix incorrect 'invalid property' errors for PropertyChanges.
...
Reviewed-by: Roberto Raggi
2010-02-16 11:55:41 +01:00
Christian Kamm
da3679066e
Add QmlJS semantic checker.
...
* Add SemanticHighlighter to QmlJSTextEditor to update the semantic info
in a background thread.
* Add QmlJS::Check to run semantic checks on qml and js documents.
* Add a check for incorrect property names.
* Fix hoverhandler to show tool tips from extra selections over help
tooltips.
2010-02-16 10:38:56 +01:00
Roberto Raggi
fd26a8c8ec
Get rid of the QmlJS prefix.
2010-02-15 12:56:03 +01:00
Roberto Raggi
8fb82ef792
Merge qmljshighlighter.* with qmlhighlighter.*.
2010-02-15 12:39:30 +01:00
Christian Kamm
cb3001b621
Remove unused forward declaration.
2010-02-15 11:56:05 +01:00
Christian Kamm
b23fc0c572
Rename QmlJS::Check -> QmlJS::Evaluate.
...
It is used to evaluate expressions to values.
Done to make room for a real 'check' pass.
2010-02-15 11:52:39 +01:00
hjk
a029a6c68a
compile fix with namespaces
2010-02-12 11:00:12 +01:00
Roberto Raggi
221fc011b8
Compile.
2010-02-12 10:43:33 +01:00
Christian Kamm
9245c7bab5
Removed unnecessary includes of qmljslink.h
2010-02-12 10:10:20 +01:00