blob: 9a275b45ac6c69f661e56f6a9f4cbea9fcc13895 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl
import "../shared"
FlowPane {
DelayButton {
text: "Delay 3000"
delay: 3000
progress: 0.7
}
DelayButton {
text: "Delay null"
delay: 0
progress: 0
}
DelayButton {
text: "Default"
}
DelayButton {
text: "Delay 0"
delay: 0
progress: 0.1
}
DelayButton {
enabled: false
text: "Delay 500"
delay: 500
progress: 1.0
}
DelayButton {
text: "Delay 1000"
delay: 1000
down: true
progress: 0.0
}
DelayButton {
text: "Style's icon color"
icon.source: "../shared/heart.svg"
visible: contentItem instanceof IconLabel
}
DelayButton {
text: "Style's icon color (action)"
visible: contentItem instanceof IconLabel
action: Action {
icon.source: "../shared/heart.svg"
}
}
DelayButton {
text: "Green icon color"
icon.source: "../shared/heart.svg"
icon.color: "green"
visible: contentItem instanceof IconLabel
}
DelayButton {
text: "Green icon color (action)"
visible: contentItem instanceof IconLabel
action: Action {
icon.source: "../shared/heart.svg"
icon.color: "green"
}
}
DelayButton {
text: "Original icon color"
icon.source: "../shared/heart.svg"
icon.color: "transparent"
visible: contentItem instanceof IconLabel
}
DelayButton {
text: "Original icon color (action)"
visible: contentItem instanceof IconLabel
action: Action {
icon.source: "../shared/heart.svg"
icon.color: "transparent"
}
}
}
|