summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativebinding.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve consistency in handling of aliases, bindings and value typesAaron Kennedy2010-11-291-160/+177
| | | | Task-number: QTBUG-13719
* This patch allows modifications on PropertyChanges on the flyThomas Hartmann2010-09-141-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is important for Bauhaus to ensure that we can edit properties and states dynamically in the visual editor Most of the changes consist of added functions for Bauhaus, that do not affect any current behaviour. Important changes: QDeclarativeAbstractBinding is holding a QSharedPointer to itself so that other classes can hold a weak reference to avoid accessing dangling pointers while keeping track of bindings. QDeclarativeStateOperation now has its own private class QDeclarativeStateOperationPrivate to hold a pointer back to QDeclarativeState since the parent is not set correctly in every context. QDeclarativePropertyChangesPrivate does now hold a QDeclarativeGuard instead of a raw pointer to the target QObject. In Bauhaus the target object might be deleted. Reviewed-by: Aaron Kennedy
* Check for binding having been deleted in more placesAaron Kennedy2010-07-141-0/+6
|
* Split responsibilities in QDeclarativeExpression more cleanlyAaron Kennedy2010-07-141-72/+67
|
* Remove incorrect ASSERTAaron Kennedy2010-05-241-3/+1
| | | | QTBUG-10832
* Be slightly more verbose on assigning undefined in binding.Warwick Allison2010-05-241-1/+3
| | | | Task-number: QTBUG-10303
* Add parent parameter to QDeclarativeExpression constructor.Michael Brasser2010-05-181-2/+2
| | | | Also rearrange the parameter order to be more clear.
* Restructure QDeclarativeAbstractBinding destructorAaron Kennedy2010-05-171-2/+4
|
* Don't call pure virtual method in ~QDeclarativeAbstractBinding()Aaron Kennedy2010-05-171-1/+1
|
* Warn on assigning a function to a QML property.Michael Brasser2010-04-291-1/+12
| | | | | | | | | This is not supported, and should not silently be converting the function to a string. See QTBUG-10302 for why we check !isRegExp as well as isFunction. Task-number: QTBUG-10237 Reviewed-by: Aaron Kennedy
* Fix crash.Warwick Allison2010-04-211-1/+3
| | | | Reviewed-by: Aaron Kennedy
* Allow null to be assigned to object propertiesAaron Kennedy2010-04-201-0/+4
|
* Emit runtime warnings through QDeclarativeEngineAaron Kennedy2010-04-191-2/+1
| | | | QTBUG-9726
* Rename the ridiculous QDeclarativeDeclarativeData -> QDeclarativeDataAaron Kennedy2010-04-151-3/+3
|
* Reduce warnings at shutdownAaron Kennedy2010-04-141-1/+1
| | | | QTBUG-9799
* Allow undefined to be assigned to QVariant propertiesAaron Kennedy2010-04-091-0/+4
| | | | QTBUG-9704
* Use variant instead of var in QMLAaron Kennedy2010-04-091-13/+0
| | | | | | In QML "var"s are not the same as JavaScript vars - they are QVariants instead. However, as they behave in a similar enough fashion to native JavaScript it can be confusing to developers when they are called "var".
* Don't crash when QML engine is deletedAaron Kennedy2010-04-081-3/+2
|
* Fix crash on null object assignmentAaron Kennedy2010-04-081-1/+2
|
* Cleanup handling of errors in bindings and scriptsAaron Kennedy2010-04-081-7/+37
| | | | | | | | | | | | | QML used to silently ignore a log of errors - such as a failed assignment to a QObject property. These errors are now all reported as exceptions in JavaScript. Other questionable activities, like assigning a JavaScript array to a "property var" property which appeared to work, thanks to QtScript's transparent conversion of arrays to a QVariantList, are now blocked entirely. QTBUG-9152 QTBUG-9382 QTBUG-9341 QTBUG-6886
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-5/+5
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Remove dead performance measurement code from QMLAaron Kennedy2010-03-221-5/+0
|
* Optimization: Reduce unnecessary QObject allocationsAaron Kennedy2010-03-171-4/+15
|
* Improve value type binding behaviorAaron Kennedy2010-03-111-9/+133
| | | | | | | | | | | | | | Changing value type bindings in state changes, and implicitly removing them on property assignment was not reliable. Internally the system considered a binding on "font" and one on "font.x" as a binding on two separate properties, even though the "font" binding completely overrides the "font.x" property. Following this change a binding to "font.x" creates a proxy binding object on the "font" property in addition to the "font.x" binding itself. This allows behavior to be consistent across all operations. QT-2920
* Polish QDeclarativeProperty APIAaron Kennedy2010-02-261-2/+2
|
* Rename QDeclarativeMetaProperty -> QDeclarativePropertyAaron Kennedy2010-02-251-6/+6
| | | | There's nothing meta about our properties.
* Make more private QDeclarativeMetaProperty methods privateAaron Kennedy2010-02-251-4/+4
|
* Tweak QDeclarativeMetaProperty type category APIAaron Kennedy2010-02-251-1/+1
|
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+308
QDeclarativeXXX.