blob: b73b991164960139a4d924b8c2d80cc30bf46bb2 (
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
|
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0
import "Widgets"
FHardwareKey {
width: 50
height: 50
property alias label : theText.text
Rectangle {
anchors.fill: parent
border.color: "black"
border.width: 1
radius: 10
smooth: true
gradient: Gradient {
GradientStop {
id: s1
color: "#FF646464"
position: 0.0
}
GradientStop {
id: s2
color: "#FF484848"
position: 0.8
}
GradientStop {
id: s3
color: "#FF323232"
position: 1.0
}
}
}
CondText {
id: theText
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
}
FViewUseCaseSimple {
condition: pressed === true
PropertyChanges { target: s1; position: 1.0 }
PropertyChanges { target: s2; position: 0.2}
PropertyChanges { target: s3; position: 0.0 }
}
}
|