Commit Graph

9 Commits

Author SHA1 Message Date
Glenn Watson d2c1adc6f9 Emit destruction signal before child contexts are destroyed.
Verbatim comment from bug report:

When using a QtObject inside an item, and then we call a function
in the Component.onDestruction handler of that item, we get a
crash. This happens because the QDeclarativeContextData engine
has been invalidated before reaching
QDeclarativeExpressionPrivate::evalFunction.

Change code to emit the onDestruction signal before the child
contexts are invalidated.

Task-number: QTBUG-22535
Change-Id: Ic4983ae5fdf104ae977189c21dc202c9b02bc2bc
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
2011-11-22 03:31:14 +01:00
Aaron Kennedy 3e84e81da7 Optimization: Minimize refreshing when root context changes
Modifying a context requires expressions to be refreshed incase they
depend on a name resolution that changes.  As it is common to modify
the root context, and the root context can't hide any names, it is easy
to constrain the expressions that require refreshing.  In a well
behaving app, this should mean that no expressions are reevaluated when
the root context is modified.

Change-Id: Id3b48cd595fdd6b5a3dc6f26319f652dccaef79c
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-11-04 16:22:04 +01:00
Aaron Kennedy 4a8871d3fe Don't crash if contexts are deleted during refreshExpressions
Change-Id: I23b59d33c07b017ef7355a7fe4a728d84c5d7eaa
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-11-04 13:00:47 +01:00
Jason McDonald b1e650a889 Remove Symbian-specific code from tests.
Symbian is not a supported platform for Qt5, so this code is no longer
required.

Change-Id: I5cb6d3b41fbb9fa5fea6176ad949e4e7be7c30b5
Reviewed-on: http://codereview.qt-project.org/5767
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-09-30 10:37:05 +02:00
Aaron Kennedy afaf155cf4 Reverse lookup ids by object pointer
Task-number: QTBUG-18554

Change-Id: Ia4effb629d19aa36b835f6c09a63d9495e5c26e7
Reviewed-on: http://codereview.qt.nokia.com/2079
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-07-25 09:43:14 +02:00
Michael Brasser 26942a682c Merge branch 'master' into v8
Conflicts:
	src/declarative/graphicsitems/qdeclarativeitem.cpp
	src/declarative/qml/qdeclarativecontextscriptclass.cpp
	src/declarative/qml/qdeclarativeengine.cpp
	src/declarative/qml/qdeclarativeengine_p.h
	src/declarative/qml/qdeclarativeglobalscriptclass.cpp
	src/declarative/qml/qdeclarativeinclude.cpp
	src/declarative/qml/qdeclarativelistscriptclass.cpp
	src/declarative/qml/qdeclarativeobjectscriptclass.cpp
	src/declarative/qml/qdeclarativeobjectscriptclass_p.h
	src/declarative/qml/qdeclarativetypenamescriptclass.cpp
	src/declarative/qml/qdeclarativevaluetypescriptclass.cpp
2011-06-07 10:15:38 +10:00
Aaron Kennedy 6b54de600c Initial V8 integration 2011-06-06 11:50:48 +10:00
Jyri Tahtela f0c87d3a1f Update licenseheader text in source files for qtdeclarative Qt module
Updated version of LGPL and FDL licenseheaders.
Apply release phase licenseheaders for all source files.

Reviewed-by: Trust Me
2011-05-24 14:43:28 +03:00
Qt by Nokia 885735d011 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00