add QDeclarativeProperty test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-11-23 17:46:36 +02:00
parent 98794ab4d6
commit c621a6fa08
5 changed files with 1505 additions and 0 deletions

View file

@ -0,0 +1,5 @@
katie_gui_test(tst_qdeclarativeproperty
${CMAKE_CURRENT_SOURCE_DIR}/tst_qdeclarativeproperty.cpp
)
target_link_libraries(tst_qdeclarativeproperty KtDeclarative)

View file

@ -0,0 +1,6 @@
import QtQuick 1.0
QtObject {
property int a: 10
}

View file

@ -0,0 +1,19 @@
import QtQuick 1.0
Item {
id: root
property real test: 9
property real test2: 3
property real realProperty: test * test + test
property alias aliasProperty: root.realProperty
states: State {
name: "switch"
PropertyChanges {
target: root
aliasProperty: 32 * test2
}
}
}

View file

@ -0,0 +1,9 @@
import QtQuick 1.0
QtObject {
property TestType test
test: TestType {
property int b: 19
}
}

File diff suppressed because it is too large Load diff