summaryrefslogtreecommitdiff
path: root/src/declarative/qml/qdeclarativebinding.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersAkseli Salovaara2015-03-311-13/+13
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I7e3e96183e073877b46bc8071b2ccae19e69426b Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Updated year in copyright headerKai Koehne2014-03-261-1/+1
| | | | | | | | | | | | | | | | | | find . -path '*/3rdparty/*' -prune -o -type f -print | xargs -L1 sed -i -E 's/Copyright(.*) 2013 Digia/Copyright\1 2014 Digia/g' Manually patched files: demos/spectrum/3rdparty/fftreal/fftreal_wrapper.h demos/spectrum/3rdparty/fftreal/fftreal_wrapper.cpp src/3rdparty/s60/eiksoftkeyimage.h tools/qdoc3/test/qt-project.qdocconf tests/auto/qsharedpointer/nontracked.h tests/auto/qsharedpointer/nontracked.cpp Change-Id: I3f9074923b4d6bd4666258ab04f01476cc6e901c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Sergio Ahumada <sahumada@blackberry.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-131-1/+1
| | | | | | Change-Id: I52bf8ef0447b701b4ebf7d7d240013a72adb9425 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-291-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Make connectNotify() work with QMLThomas McGuire2012-08-311-1/+16
| | | | | | | | | | | | | Call connectNotify() and disconnectNotify() in QML signal handlers and in QML bindings. This is a backport of Qt5's QtDeclarative commit 26ea8e01e9ee2a8c8c09266147b94c9ac92d09f9. Task-number: QTBUG-11284 Change-Id: If5c3701426208875f3b775040c4e7bcbaac2b0a9 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011-2/+2
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix leak in bindings created by PropertyChanges.Michael Brasser2011-09-021-0/+2
| | | | | | Change-Id: I1c7b575e1ace2b879dba130cd31e3ff8cf67260a Task-number: QTBUG-17770 Reviewed-by: Aaron Kennedy
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2011-06-211-2/+3
|\ | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Fix crash in PropertyChanges. Scroll correctly when cursorPosition is changed within onTextChanged.
| * Fix crash in PropertyChanges.Michael Brasser2011-06-211-2/+3
| | | | | | | | | | | | | | | | | | Don't crash when adding an optimized binding to an object not associated with a QDeclarativeEngine. Change-Id: I4501e21e959380fedfafdc8bc477b330cffbce1b Task-number: QTBUG-19914 Reviewed-by: Aaron Kennedy
* | Update licenseheader text in source filesJyri Tahtela2011-05-131-17/+17
|/ | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Allow property bindings to be easily created from JavaScriptBea Lam2011-01-271-0/+20
| | | | | | | | Properties can now be assigned a function that returns the binding value. Task-number: QTBUG-14964 Reviewed-by: Aaron Kennedy
* Add location information for tracing.Michael Brasser2011-01-251-0/+1
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191-1/+1
|\
| * Update copyright year to 2011.Jason McDonald2011-01-111-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | Fix memory leakAaron Kennedy2011-01-171-3/+9
| | | | | | | | Introduced by 488e616b50707e5b37162e6d0cfc71a1ffdf9bef
* | Fix potential crash in PropertyChanges binding rewrite handling.Michael Brasser2010-12-211-0/+5
| | | | | | | | | | | | | | This fixes the autotest regression for tst_qdeclarativestates::editProperties introduced by 488e616b50707e5b37162e6d0cfc71a1ffdf9bef. Reviewed-by: Joona Petrell
* | Rewrite/cache bindings created by PropertyChanges.Michael Brasser2010-12-171-0/+14
| | | | | | | | | | | | | | This provides a significant optimization for initial evaluation of bindings specified in a PropertyChanges. Reviewed-by: Aaron Kennedy
* | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2010-12-011-160/+177
|\ \ | |/
| * Improve consistency in handling of aliases, bindings and value typesAaron Kennedy2010-11-291-160/+177
| | | | | | | | Task-number: QTBUG-13719
* | Make deferred tracing less expensive (real-time cost is the same)Michael Brasser2010-11-191-1/+1
| |
* | Support directly setting string range data.Michael Brasser2010-11-191-2/+3
| |
* | Use high performance timer for profiling. Add binding profile info.Michael Brasser2010-11-191-0/+15
|/
* 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-301-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
|