Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativevaluetypes / data / bindingsSpliceCorrectly.3.qml
1 import Test 1.0
2 import QtQuick 1.0
3
4 BindingsSpliceCorrectlyType {
5     property bool test: false
6
7     property bool italicProperty: false
8     property bool boldProperty2: false
9
10     font.italic: italicProperty
11     font.bold: boldProperty2
12
13     Component.onCompleted: {
14         // Test initial state
15         if (font.italic != false) return;
16         if (font.bold != false) return;
17
18         // Test italic binding worked
19         italicProperty = true;
20
21         if (font.italic != true) return;
22         if (font.bold != false) return;
23
24         // Test bold binding was overridden
25         boldProperty = true;
26         if (font.italic != true) return;
27         if (font.bold != false) return;
28
29         boldProperty2 = true;
30         if (font.italic != true) return;
31         if (font.bold != true) return;
32
33         test = true;
34     }
35 }
36