aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/propertyrequirements
Commit message (Collapse)AuthorAgeFilesLines
* Avoid crash in property requirements testUlf Hermann2019-01-081-1/+3
| | | | | | | | | | Pure QML types do not have a meta object hierarchy associated with them. The test is only supposed to test C++ types, though. We can ignore the types without meta objects. Change-Id: I2a40bc0023f6d335c4dbdbc04818da60f47d8787 Fixes: QTBUG-72637 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Remove invalid CONFIG optionKevin Krammer2018-07-251-1/+1
| | | | | | | | cpp11 is not a valid option for CONFIG, c++11 would be but is default now anyway Change-Id: I85f0be22863f55e69dc488815a3fdb93b78d6995 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Unit test to check for property requirements of registered QML typesKevin Krammer2018-07-252-0/+210
Properties of C++ types registered with QML need to be either marked CONSTANT or have a NOTIFY signal to be usable in property bindings. A property which is neither CONSTANT not NOTIFYable will trigger a runtime warning when being used in a property binding and might not work as expected at all, see QTBUG-62913 This test reports these potentially problematic properties in two ways: 1) Report the QML type and its specific properties, i.e. the properties defined in the C++ type that got registered for this type. Does not include properties of base classes 2) Report all properties by defininf C++ class and list which QML type is affected by it, i.e. which QML type has this property, inherited or locally defined Task-number: QTBUG-63120 Change-Id: Ie808835d86f87ca7c056fb20aae1ed7b182ea191 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>