blob: 2a1b936da67edcc9fb43ae2e0e76c18ffd89d722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import Test 1.0
import QtQuick 2.0
BindingsSpliceCorrectlyType {
property bool test: false
property bool italicProperty: false
font.italic: italicProperty
Component.onCompleted: {
// Test initial state
if (font.italic != false) return;
if (font.bold != false) return;
// Test italic binding worked
italicProperty = true;
if (font.italic != true) return;
if (font.bold != false) return;
// Test bold binding worked
boldProperty = true;
if (font.italic != true) return;
if (font.bold != true) return;
test = true;
}
}
|