mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
add QDeclarativeProperty test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
98794ab4d6
commit
c621a6fa08
5 changed files with 1505 additions and 0 deletions
5
tests/auto/qdeclarativeproperty/CMakeLists.txt
Normal file
5
tests/auto/qdeclarativeproperty/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
katie_gui_test(tst_qdeclarativeproperty
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tst_qdeclarativeproperty.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(tst_qdeclarativeproperty KtDeclarative)
|
6
tests/auto/qdeclarativeproperty/data/TestType.qml
Normal file
6
tests/auto/qdeclarativeproperty/data/TestType.qml
Normal file
|
@ -0,0 +1,6 @@
|
|||
import QtQuick 1.0
|
||||
|
||||
QtObject {
|
||||
property int a: 10
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
import QtQuick 1.0
|
||||
|
||||
QtObject {
|
||||
property TestType test
|
||||
|
||||
test: TestType {
|
||||
property int b: 19
|
||||
}
|
||||
}
|
1466
tests/auto/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
Normal file
1466
tests/auto/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue