aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertydata_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix QQmlPropertyData after QQMetaType changes in Qt CoreLars Knoll2020-09-151-6/+2
| | | | | | | | | | QMetaType::User is now much bigger than it used to be in Qt 5. This means that 16 bits to hols the property type is not enough. Use a regular int instead, reorder the members a bit and remove the unused short. Change-Id: I4b073e6cf1c7baa664bdee5df9552d109019665d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Adjust to qtbase changesFabian Kosmale2020-09-041-8/+9
| | | | | | | | | | | | | - isQProperty has been renamed to bindable - QNotifiedProperty is no more - Bindable properties have a function to obtain the QBindable; store that information in the qmltypes files. Task-number: QTBUG-86434 Task-number: QTBUG-86435 Change-Id: I2ba593af1e197d04d2c30cfb9e6904a3d2059e4b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add ; to Q_UNUSED and UNUSED_PARAMLars Schmertmann2020-06-261-1/+1
| | | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: Iead53d18fd790fb2d870d80ef2db79666f0d2392 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QQmlPropertyData: Fix isDirect flag handlingFabian Kosmale2020-05-071-1/+2
| | | | | | | | | | | During the QQmlPropertyData::Flags refactoring, this accidentally broke. Amends 9768792381d660e46db58c0c0e0fe9f2f6f9e836 Pick-to: 5.15 Coverity-Id: 265549 Change-Id: I433701e2a1926dbd7afc4a826d78ba28f6894e60 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add support for binding directly to QProperty instancesSimon Hausmann2020-03-301-6/+11
| | | | | | | | | | Avoid going through externally managed bindings and instead allocate a more lightweight property binding. It's basically a QQmlJavaScriptExpression and one pointer plus the overhead of QPropertyBindingPrivate. Change-Id: I1530330926d351b61f2b3bbad39301c628a8bef1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* fix developer build on clangFabian Kosmale2020-03-181-0/+1
| | | | | Change-Id: I413cbce42d7405b17eff18293a68c2a26f30fd08 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Use QTypeRevision for all versions and revisionsUlf Hermann2020-02-031-17/+12
| | | | | | | | | | | | | | In many places we carry major and minor versions or revisions that are loosely coupled to minor versions. As the Qt minor version resets now, we need to handle these things more systematically. In particular, we need to add a "major" part to revisions. QTypeRevision can express the current major/minor pairs more efficiently and can also be used to add a major version to revisions. This change does not change the semantics, yet, but only replaces the types. Change-Id: Ie58ba8114d7e4c6427f0f28716deee71995c0d24 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Handle required properties declared in C++Fabian Kosmale2020-01-281-5/+11
| | | | | | Fixes: QTBUG-81561 Change-Id: I97a0f5013b6e3662ffaad53c5cc871404e11a310 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QQmlPropertyData: Save some bitsFabian Kosmale2020-01-231-60/+131
| | | | | | | | | | There are some flags which are only used when the type equals FunctionType and respectively some which are only used when the type does not equal FunctionType. By reusing those bits and changing there semantics depending on type, we can grow BitsLeftInFlags by 50%. Change-Id: I7099d6e87826a49aae5f283160c488004ac5b0e1 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Dissolve QQmlPropertyRawDataLars Knoll2019-04-181-23/+270
| | | | | | | There is no reason anymore to split the class in two parts. Change-Id: Iabef7acec1db7afc0ed4e89e1fd5b78699dc0847 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* QML: Split propertyCache into multiple filesUlf Hermann2019-02-011-0/+164
I want to be able to read the code. Change-Id: I063143ff63b0a476d783c892e1d328e7f5133fab Reviewed-by: Lars Knoll <lars.knoll@qt.io>