Commit Graph

162 Commits

Author SHA1 Message Date
Kai Koehne
be777c647e QmlJS: Fix compilation warning 2010-07-23 07:46:05 +02:00
Kai Koehne
7f5c790358 Compilation fix (MSVC) 2010-07-16 11:34:01 +02:00
Christian Kamm
4ecf0349c5 QmlJS: Make 'follow symbol' work on JS functions.
Task-number: QTCREATORBUG-1757
2010-07-16 10:50:28 +02:00
con
ede2a7c975 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	share/qtcreator/gdbmacros/dumper.py
	src/libs/qmljs/qmljs-lib.pri
	src/plugins/debugger/breakhandler.cpp
	src/plugins/projectexplorer/projectexplorer.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
2010-06-30 14:25:09 +02:00
Christian Kamm
38e8c0dfd0 QmlJS: Set the return value of the JS type constructors.
Task-number: QTCREATORBUG-1737
Reviewed-by: Erik Verbruggen
2010-06-28 09:49:45 +02:00
Christian Kamm
c4a979a99f QmlJS: Fix completion for slots.
When reading the xml file describing the Qml types, we incorrectly
classified all functions as methods. They should be slots, since
otherwise qmldump couldn't have dumped them in the first place.

Task-number: QTCREATORBUG-1755
Reviewed-by: Erik Verbruggen
2010-06-28 09:45:37 +02:00
Christian Kamm
4271d2a21f QmlJS: Make the qml instantiating component chain more useful.
By actually storing the documents instead of only the root and id
environments.
2010-06-25 17:10:14 +02:00
Christian Kamm
123607ad70 QmlJS: Make variables in imported JS documents show up in completion.
Filtering them out has long since become unnecessary. It was used back
when JS files were sourced from Script elements - there they'd only
make the functions available. Now functions and variables are imported.

Task-number: QTCREATORBUG-1735
Reviewed-by: Erik Verbruggen
2010-06-25 13:34:45 +02:00
con
b0040dc858 Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/projectexplorer/taskwindow.cpp
	src/shared/proparser/profileevaluator.cpp
2010-06-10 15:00:16 +02:00
Christian Kamm
45415783e7 QmlJS: Get rid of xml file describing qml builtin types.
The type information is now generated at runtime.
2010-06-10 11:33:04 +02:00
Robert Loehning
0aaa9a82b1 Compile fix for MSVC 2010-06-09 15:46:54 +02:00
Christian Kamm
e307bc2506 QmlJS: Store plugin metatypes in LibraryInfo. Rework type loading. 2010-06-09 14:36:54 +02:00
Christian Kamm
649cebda32 QmlJS: Fix windows namespace issue with ComponentVersion.
Done-with: owolff
2010-06-09 14:36:54 +02:00
Christian Kamm
fa79add293 QmlJS: Check for existance of qmldump binary before using it. 2010-06-09 14:36:54 +02:00
Christian Kamm
f9d7872761 QmlJS: Use ComponentVersion everywhere. 2010-06-09 14:36:53 +02:00
Christian Kamm
822520c304 QmlJS: Get at types defined in plugins by running qmldump on them.
Task-number: QTCREATORBUG-1021
Reviewed-by: Roberto Raggi
2010-06-09 14:36:53 +02:00
Christian Kamm
313d30654e QmlJS: Avoid infinite recursion when encountering property loops.
Such as
property int foo: bar
property int bar: foo.

Task-number: QTCREATORBUG-1389
Reviewed-by: Roberto Raggi
2010-06-08 15:37:16 +02:00
Christian Kamm
3b8b6e89cc QmlJS: Autocomplete dot and colon for properties.
Reviewed-by: Roberto Raggi
2010-06-07 17:37:45 +02:00
Erik Verbruggen
ea2054a945 Fixed uninitialized members. 2010-06-04 11:15:38 +02:00
Erik Verbruggen
eed0241d97 Fixed a couple of null-checks/-returns. 2010-06-04 11:15:38 +02:00
Erik Verbruggen
112df597db Fixed default property discovery for custom QML components.
Reviewed-by: Christian Kamm
2010-05-31 12:21:12 +02:00
Christian Kamm
62141475e3 QmlJS: Potentially fix hard-to-reproduce crash in JS completion.
* Context::build was potentially dangerous. Link and ScopeBuilder
  went out of scope before their results stopped being used.
* ScopeBuilder: If no function scope object was found, don't add it.

Reviewed-by: Erik Verbruggen
2010-05-19 14:23:08 +02:00
Christian Kamm
da6b372575 QmlJS: Move Q_DECLARE_TR_FUNCTIONS to the start of class declarations.
The documentation requires having it there.
2010-05-19 13:42:56 +02:00
Christian Kamm
4e498caf30 Fix the build.
50cc55af80 broke it.
2010-05-19 13:39:54 +02:00
Christian Kamm
50cc55af80 QmlJS: Change to a nicer way of marking strings for translation.
Reviewed-by: ossi
2010-05-19 13:32:11 +02:00
Christian Kamm
fadfe9c64e QmlJS: Generalize EasingCurve name check to all enums.
Reviewed-by: Erik Verbruggen
2010-05-19 12:24:32 +02:00
Christian Kamm
259007f5e6 QmlJS: Fix potential crash when a document doesn't have a type env yet.
Reviewed-by: Roberto Raggi
2010-05-11 15:28:18 +02:00
Christian Kamm
0e12240613 QmlJS: Completion for enums.
Done-with: Erik Verbruggen
2010-04-29 16:05:25 +02:00
Christian Kamm
953f0daa50 QmlJS: Add a check to disallow recursive type definitions in xml file.
At least direct recursion with name="Foo" extends="Foo" is detected
and rejected.

Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
f48df24737 QmlJS: Improve property and Type completion in Qml object members.
Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
9af4f2c64f QmlJS: Remove unused function environment from binder.
This used to contain all functions declared in Script blocks. With them
gone, there's no reason to keep it.
2010-04-28 10:01:36 +02:00
Christian Kamm
3286f48504 QmlJS: Remove Link::scopeChainAt, initialize scope chain in constructor.
Use ScopeBuilder.push(...) for the same functionality.

Reviewed-by: Erik Verbruggen
2010-04-22 16:36:43 +02:00
Christian Kamm
f47135c919 QmlJS: Fix code model for QSize and QSizeF.
Means their members are now completed correctly.

Task-number: QTCREATORBUG-1132
Reviewed-by: Erik Verbruggen
2010-04-15 11:41:24 +02:00
Yann Bodson
9218e261b0 Fix 'capitalization' typo. 2010-04-12 15:18:21 +10:00
Friedemann Kleint
98e6eac6c2 Windows Compile fix. 2010-04-07 12:09:46 +02:00
Christian Kamm
db2f91ef8f QmlJS: Don't produce Qml type errors if plugins are imported.
Task-number: QTCREATORBUG-1021
Reviewed-by: Erik Verbruggen
2010-04-07 11:09:27 +02:00
Erik Verbruggen
4ba9a1b0c2 Fixed qualified-enum handling.
Done-with: ckamm
2010-04-06 15:41:06 +02:00
Erik Verbruggen
e615cf82a5 Fixed regression when assigning an object binding to an array property. 2010-04-06 12:57:02 +02:00
Erik Verbruggen
491bf79d5f Changed QML reading in QML designer to use the interpreter for property types. 2010-04-06 11:46:36 +02:00
Erik Verbruggen
b71d3eb145 Added defaultProperty attribute reading and storing. 2010-04-06 09:38:40 +02:00
Christian Kamm
285e2ffbb2 QmlJS: Only collect linker errors for the current file being checked.
Avoids bug where import errors would show up in all files.

Reviewed-by: Roberto Raggi
2010-03-29 11:33:25 +02:00
Christian Kamm
81f7fc2e70 QmlJS: Fix reading enumerators from Qml type description.
Previously, the actual enumerator values weren't read correctly.
2010-03-26 14:17:08 +01:00
Christian Kamm
c1c155f5bb Fix code model for nested Qml packages like Qt.labs.particles.
Task-number: QTCREATORBUG-926
Reviewed-by: Erik Verbruggen
2010-03-25 15:31:24 +01:00
Friedemann Kleint
5dd8dfba30 tr()-Fixes 2010-03-23 17:24:59 +01:00
Christian Kamm
9ea01cf5fb Improve Qml code model import handling.
* Fill the snapshot with files that could be imported.
* Implement package imports.

* The qmldir file is not parsed yet.

Reviewed-by: Erik Verbruggen
2010-03-18 11:25:37 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +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
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