QML_RUNTIME_TESTING should be disabled by default.
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlvaluetypes / data / rect_compare.qml
1 import Test 1.0
2
3 MyTypeObject {
4     property int r_x: rect.x
5     property int r_y: rect.y
6     property int r_width: rect.width
7     property int r_height: rect.height
8     property variant copy: rect
9     property string tostring: rect.toString()
10
11     // compare to string
12     property bool equalsString: (rect == tostring)
13
14     // compare rects to various value types
15     property bool equalsColor: (rect == Qt.rgba(0.2, 0.88, 0.6, 0.34)) // false
16     property bool equalsVector3d: (rect == Qt.vector3d(1, 2, 3))       // false
17     property bool equalsSize: (rect == Qt.size(1912, 1913))            // false
18     property bool equalsPoint: (rect == Qt.point(10, 4))               // false
19     property bool equalsRect: (rect == Qt.rect(2, 3, 109, 102))        // true
20
21     property bool equalsSelf: (rect == rect)                   // true
22     property bool equalsOther: (rect == Qt.rect(6, 9, 99, 92)) // false
23     property bool rectEqualsRectf: (rect == rectfrect)         // true
24 }
25